ebuildy.cidre.repository (0.12.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.12.1


Add to requirements.yml

  collections:
    - name: ebuildy.cidre
      version: 0.12.1

Description

Get github repo or gitlab project

Usage examples

  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
- name: Display test-cidre project ID
  debug: msg={{ lookup('ebuildy.cidre.repository', 'ebuildy/test', api='github') }}

Inputs

    
api:
    choices:
    - github
    - gitlab
    - bitbucket
    - jira
    - confluence
    description:
    - gitlab / github / jira
    type: str

repo:
    description: repo name or numerical ID
    type: string

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 full URL

api_url:
    description: API endpoint
    type: string

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

api_token:
    description: access_token
    type: string

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

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

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

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

Outputs

_list:
  description:
  - project ID
  type: int