redhat_cop.ah_configuration.ah_collection_upload (0.9.2) — module

Upload a collection artifact to Automation Hub.

Authors: Tom Page (@Tompage1994)

preview | supported by community

Install collection

Install with ansible-galaxy collection install redhat_cop.ah_configuration:==0.9.2


Add to requirements.yml

  collections:
    - name: redhat_cop.ah_configuration
      version: 0.9.2

Description

Upload a collection artifact to Automation Hub. See U(https://www.ansible.com/) for an overview.

Usage examples

  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
- name: Upload collection to automation hub
  ah_collection_upload:
    path: /var/tmp/collections/awx_awx-15.0.0.tar.gz
  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
- name: Upload collection to automation hub from galaxy
  ah_collection_upload:
    path: https://galaxy.ansible.com/download/theforeman-foreman-3.2.0.tar.gz

Inputs

    
path:
    description:
    - Collection artifact file path.
    - Can be a URL
    required: true
    type: str

wait:
    default: false
    description:
    - Wait for the collection to be uploaded.
    type: bool

ah_host:
    aliases:
    - ah_hostname
    description:
    - URL to Ansible Galaxy or Automation Hub instance.
    - If value not set, will try environment variable C(AH_HOST)
    - If value not specified by any means, the value of C(127.0.0.1) will be used
    type: str

ah_token:
    description:
    - The Ansible Galaxy or Automation Hub API token to use.
    - This value can be in one of two formats.
    - A string which is the token itself. (i.e. bqV5txm97wqJqtkxlMkhQz0pKhRMMX)
    - A dictionary structure as returned by the ah_token module.
    - If value not set, will try environment variable C(AH_API_TOKEN)
    type: raw

ah_password:
    description:
    - Password for your Ansible Galaxy or Automation Hub instance.
    - If value not set, will try environment variable C(AH_PASSWORD)
    type: str

ah_username:
    description:
    - Username for your Ansible Galaxy or Automation Hub instance.
    - If value not set, will try environment variable C(AH_USERNAME)
    type: str

ah_path_prefix:
    default: galaxy
    description:
    - API path used to access the api.
    - For galaxy_ng this is either 'automation-hub' or the custom prefix used on install
      with GALAXY_API_PATH_PREFIX
    - For Automation Hub this is 'galaxy'
    type: str

validate_certs:
    aliases:
    - ah_verify_ssl
    description:
    - Whether to allow insecure connections to Galaxy or Automation Hub Server.
    - If C(no), SSL certificates will not be validated.
    - This should only be used on personally controlled sites using self-signed certificates.
    - If value not set, will try environment variable C(AH_VERIFY_SSL)
    type: bool