ebuildy.cidre.repo (0.5.1) — lookup

get project ID via name

| "added in version" 0.1.0 of ebuildy.cidre"

Authors: Thomas Decaux

Install collection

Install with ansible-galaxy collection install ebuildy.cidre:==0.5.1


Add to requirements.yml

  collections:
    - name: ebuildy.cidre
      version: 0.5.1

Description

Get repo

Usage examples

1
  • Error
    Use a fully-qualified name, such as 'ansible.builtin.debug' instead of 'debug'.
1
  • Hint
    Inline module parameters used in module 'debug' also use Jinja expression. Will not be checked further.
- name: Display test-cidre project ID
  debug: msg={{ lookup('ebuildy.cidre.repo', 'v1.0.0', platform='github' repo='ebuildy/test') }}

Inputs

    
force:
    default: false
    description: Whether or not to set "cache-control" header with value "no-cache"
    env:
    - name: ANSIBLE_LOOKUP_URL_FORCE
    ini:
    - key: force
      section: url_lookup
    type: boolean
    vars:
    - name: ansible_lookup_url_force
    version_added: '2.10'
    version_added_collection: ebuildy.cidre

_terms:
    description: repo

ca_path:
    description: String of file system path to CA cert bundle to use
    env:
    - name: ANSIBLE_LOOKUP_URL_CA_PATH
    ini:
    - key: ca_path
      section: url_lookup
    type: string
    vars:
    - name: ansible_lookup_url_ca_path
    version_added: '2.10'
    version_added_collection: ebuildy.cidre

headers:
    default: {}
    description: HTTP request headers
    type: dictionary
    version_added: '2.9'
    version_added_collection: ebuildy.cidre

timeout:
    default: 10
    description: How long to wait for the server to send data before giving up
    env:
    - name: ANSIBLE_LOOKUP_URL_TIMEOUT
    ini:
    - key: timeout
      section: url_lookup
    type: float
    vars:
    - name: ansible_lookup_url_timeout
    version_added: '2.10'
    version_added_collection: ebuildy.cidre

password:
    description: Password to use for HTTP authentication.
    type: string
    version_added: '2.8'
    version_added_collection: ebuildy.cidre

username:
    description: Username to use for HTTP authentication.
    type: string
    version_added: '2.8'
    version_added_collection: ebuildy.cidre

use_proxy:
    default: true
    description: Flag to control if the lookup will observe HTTP proxy environment variables
      when present.
    type: boolean

cidre_repo:
    default: ''
    description: repo name or numerical ID
    env:
    - name: CIDRE_REPO
    type: string

http_agent:
    default: ansible-httpget
    description: User-Agent to use in the request. The default was changed in 2.11 to
      C(ansible-httpget).
    env:
    - name: ANSIBLE_LOOKUP_URL_AGENT
    ini:
    - key: agent
      section: url_lookup
    type: string
    vars:
    - name: ansible_lookup_url_agent
    version_added: '2.10'
    version_added_collection: ebuildy.cidre

use_gssapi:
    default: false
    description:
    - Use GSSAPI handler of requests
    - As of Ansible 2.11, GSSAPI credentials can be specified with I(username) and I(password).
    env:
    - name: ANSIBLE_LOOKUP_URL_USE_GSSAPI
    ini:
    - key: use_gssapi
      section: url_lookup
    type: boolean
    vars:
    - name: ansible_lookup_url_use_gssapi
    version_added: '2.10'
    version_added_collection: ebuildy.cidre

unix_socket:
    description: String of file system path to unix socket file to use when establishing
      connection to the provided url
    env:
    - name: ANSIBLE_LOOKUP_URL_UNIX_SOCKET
    ini:
    - key: unix_socket
      section: url_lookup
    type: string
    vars:
    - name: ansible_lookup_url_unix_socket
    version_added: '2.10'
    version_added_collection: ebuildy.cidre

cidre_platform:
    default: github
    description: gitlab/github
    env:
    - name: CIDRE_PLATFORM
    type: string

validate_certs:
    default: true
    description: Flag to control SSL certificate validation
    type: boolean

follow_redirects:
    default: urllib2
    description: String of urllib2, all/yes, safe, none to determine how redirects are
      followed, see RedirectHandlerFactory for more information
    env:
    - name: ANSIBLE_LOOKUP_URL_FOLLOW_REDIRECTS
    ini:
    - key: follow_redirects
      section: url_lookup
    type: string
    vars:
    - name: ansible_lookup_url_follow_redirects
    version_added: '2.10'
    version_added_collection: ebuildy.cidre

force_basic_auth:
    default: false
    description: Force basic authentication
    env:
    - name: ANSIBLE_LOOKUP_URL_AGENT
    ini:
    - key: agent
      section: url_lookup
    type: boolean
    vars:
    - name: ansible_lookup_url_agent
    version_added: '2.10'
    version_added_collection: ebuildy.cidre

cidre_platform_url:
    default: ''
    description: API endpoint
    env:
    - name: CIDRE_URL
    type: string

unredirected_headers:
    description: A list of headers to not attach on a redirected request
    env:
    - name: ANSIBLE_LOOKUP_URL_UNREDIR_HEADERS
    ini:
    - key: unredirected_headers
      section: url_lookup
    type: list
    vars:
    - name: ansible_lookup_url_unredir_headers
    version_added: '2.10'
    version_added_collection: ebuildy.cidre

cidre_platform_access_token:
    description: access_token
    env:
    - name: CIDRE_ACCESS_TOKEN
    type: string

Outputs

_list:
  description:
  - project ID
  type: int