Deprecated

Removed in 3.7

i

Reason:Deprecated in favor of upcoming C(_import) module. | Alternative:Once published, use M(tower_import) instead.

alancoding.awx.tower_send (11.2.0) — module

Send assets to Ansible Tower.

| "added in version" 2.8 of alancoding.awx"

Authors: John Westcott IV (@john-westcott-iv)

deprecated | supported by community

Install collection

Install with ansible-galaxy collection install alancoding.awx:==11.2.0


Add to requirements.yml

  collections:
    - name: alancoding.awx
      version: 11.2.0

Description

Send assets to Ansible Tower. See U(https://www.ansible.com/tower) for an overview.


Requirements

Usage examples

  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
- name: Import all tower assets
  tower_send:
    assets: "{{ export_output.assets }}"
    tower_config_file: "~/tower_cli.cfg"

Inputs

    
files:
    default: []
    description:
    - List of files to import.
    elements: str
    type: list

assets:
    description:
    - The assets to import.
    - This can be the output of tower_receive or loaded from a file
    type: str

prevent:
    default: []
    description:
    - A list of asset types to prevent import for
    elements: str
    type: list

tower_host:
    description:
    - URL to your Tower or AWX instance.
    - If value not set, will try environment variable C(TOWER_HOST) and then config files
    - If value not specified by any means, the value of C(127.0.0.1) will be used
    type: str

tower_password:
    description:
    - Password for your Tower or AWX instance.
    - If value not set, will try environment variable C(TOWER_PASSWORD) and then config
      files
    type: str

tower_username:
    description:
    - Username for your Tower or AWX instance.
    - If value not set, will try environment variable C(TOWER_USERNAME) and then config
      files
    type: str

validate_certs:
    aliases:
    - tower_verify_ssl
    description:
    - Whether to allow insecure connections to Tower or AWX.
    - 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(TOWER_VERIFY_SSL) and then config
      files
    type: bool

tower_config_file:
    description:
    - Path to the Tower or AWX config file.
    type: path

password_management:
    choices:
    - default
    - random
    default: default
    description:
    - The password management option to use.
    - The prompt option is not supported.
    type: str

Outputs

output:
  description: The import messages
  returned: success, fail
  sample:
  - Message 1
  - Message 2
  type: list