more rename, mostly in test

This commit is contained in:
Seth Foster
2021-04-29 11:58:41 -04:00
parent a695274cb6
commit 7a63785255
105 changed files with 616 additions and 625 deletions

View File

@@ -14,12 +14,12 @@ ANSIBLE_METADATA = {'metadata_version': '1.1', 'status': ['preview'], 'supported
DOCUMENTATION = '''
---
module: tower_ad_hoc_command
module: ad_hoc_command
author: "John Westcott IV (@john-westcott-iv)"
version_added: "4.0"
short_description: create, update, or destroy Ansible Tower ad hoc commands.
short_description: create, update, or destroy Automation Controller ad hoc commands.
description:
- Create, update, or destroy Ansible Tower ad hoc commands. See
- Create, update, or destroy Automation Controller ad hoc commands. See
U(https://www.ansible.com/tower) for an overview.
options:
job_type:

View File

@@ -14,11 +14,11 @@ ANSIBLE_METADATA = {'metadata_version': '1.1', 'status': ['preview'], 'supported
DOCUMENTATION = '''
---
module: tower_ad_hoc_command_cancel
module: ad_hoc_command_cancel
author: "John Westcott IV (@john-westcott-iv)"
short_description: Cancel an Ansible Tower Ad Hoc Command.
short_description: Cancel an Automation Controller Ad Hoc Command.
description:
- Cancel Ansible Tower ad hoc command. See
- Cancel Automation Controller ad hoc command. See
U(https://www.ansible.com/tower) for an overview.
options:
command_id:
@@ -47,7 +47,7 @@ extends_documentation_fragment: awx.awx.auth
EXAMPLES = '''
- name: Cancel command
tower_ad_hoc_command_cancel:
ad_hoc_command_cancel:
command_id: command.id
'''

View File

@@ -14,11 +14,11 @@ ANSIBLE_METADATA = {'metadata_version': '1.1', 'status': ['preview'], 'supported
DOCUMENTATION = '''
---
module: tower_ad_hoc_command_wait
module: ad_hoc_command_wait
author: "John Westcott IV (@john-westcott-iv)"
short_description: Wait for Ansible Tower Ad Hoc Command to finish.
short_description: Wait for Automation Controller Ad Hoc Command to finish.
description:
- Wait for Ansible Tower ad hoc command to finish and report success or failure. See
- Wait for Automation Controller ad hoc command to finish and report success or failure. See
U(https://www.ansible.com/tower) for an overview.
options:
command_id:
@@ -41,14 +41,14 @@ extends_documentation_fragment: awx.awx.auth
EXAMPLES = '''
- name: Launch an ad hoc command
tower_ad_hoc_command:
ad_hoc_command:
inventory: "Demo Inventory"
credential: "Demo Credential"
wait: false
register: command
- name: Wait for ad joc command max 120s
tower_ad_hoc_command_wait:
ad_hoc_command_wait:
command_id: "{{ command.id }}"
timeout: 120
'''

View File

@@ -14,11 +14,11 @@ ANSIBLE_METADATA = {'metadata_version': '1.1', 'status': ['preview'], 'supported
DOCUMENTATION = '''
---
module: tower_application
module: application
author: "Geoffrey Bacheot (@jffz)"
short_description: create, update, or destroy Ansible Tower applications
short_description: create, update, or destroy Automation Controller applications
description:
- Create, update, or destroy Ansible Tower applications. See
- Create, update, or destroy Automation Controller applications. See
U(https://www.ansible.com/tower) for an overview.
options:
name:
@@ -69,7 +69,7 @@ extends_documentation_fragment: awx.awx.auth
EXAMPLES = '''
- name: Add Foo application
tower_application:
application:
name: "Foo"
description: "Foo bar application"
organization: "test"
@@ -78,7 +78,7 @@ EXAMPLES = '''
client-type: public
- name: Add Foo application
tower_application:
application:
name: "Foo"
description: "Foo bar application"
organization: "test"

View File

@@ -14,11 +14,11 @@ ANSIBLE_METADATA = {'metadata_version': '1.1', 'status': ['preview'], 'supported
DOCUMENTATION = '''
---
module: tower_credential
module: credential
author: "Wayne Witzel III (@wwitzel3)"
short_description: create, update, or destroy Ansible Tower credential.
short_description: create, update, or destroy Automation Controller credential.
description:
- Create, update, or destroy Ansible Tower credentials. See
- Create, update, or destroy Automation Controller credentials. See
U(https://www.ansible.com/tower) for an overview.
options:
name:
@@ -56,7 +56,7 @@ options:
description:
- >-
Credential inputs where the keys are var names used in templating.
Refer to the Ansible Tower documentation for example syntax.
Refer to the Automation Controller documentation for example syntax.
- Any fields in this dict will take prescedence over any fields mentioned below (i.e. host, username, etc)
type: dict
update_secrets:
@@ -204,7 +204,7 @@ notes:
EXAMPLES = '''
- name: Add tower machine credential
tower_credential:
credential:
name: Team Name
description: Team Description
organization: test-org
@@ -213,7 +213,7 @@ EXAMPLES = '''
tower_config_file: "~/tower_cli.cfg"
- name: Create a valid SCM credential from a private_key file
tower_credential:
credential:
name: SCM Credential
organization: Default
state: present
@@ -230,7 +230,7 @@ EXAMPLES = '''
register: aws_ssh_key
- name: Add Credential Into Tower
tower_credential:
credential:
name: Workshop Credential
credential_type: Machine
organization: Default
@@ -240,7 +240,7 @@ EXAMPLES = '''
delegate_to: localhost
- name: Add Credential with Custom Credential Type
tower_credential:
credential:
name: Workshop Credential
credential_type: MyCloudCredential
organization: Default
@@ -249,7 +249,7 @@ EXAMPLES = '''
tower_host: https://localhost
- name: Create a Vaiult credential (example for notes)
tower_credential:
credential:
name: Example password
credential_type: Vault
organization: Default
@@ -258,7 +258,7 @@ EXAMPLES = '''
vault_id: 'My ID'
- name: Bad password update (will replace vault_id)
tower_credential:
credential:
name: Example password
credential_type: Vault
organization: Default
@@ -266,14 +266,14 @@ EXAMPLES = '''
vault_password: 'new_password'
- name: Another bad password update (will replace vault_id)
tower_credential:
credential:
name: Example password
credential_type: Vault
organization: Default
vault_password: 'new_password'
- name: A safe way to update a password and keep vault_id
tower_credential:
credential:
name: Example password
credential_type: Vault
organization: Default
@@ -282,7 +282,7 @@ EXAMPLES = '''
vault_id: 'My ID'
- name: Copy Credential
tower_credential:
credential:
name: Copy password
copy_from: Example password
credential_type: Vault

View File

@@ -14,12 +14,12 @@ ANSIBLE_METADATA = {'metadata_version': '1.1', 'status': ['preview'], 'supported
DOCUMENTATION = '''
---
module: tower_credential_input_source
module: credential_input_source
author: "Tom Page (@Tompage1994)"
version_added: "2.3"
short_description: create, update, or destroy Ansible Tower credential input sources.
short_description: create, update, or destroy Automation Controller credential input sources.
description:
- Create, update, or destroy Ansible Tower credential input sources. See
- Create, update, or destroy Automation Controller credential input sources. See
U(https://www.ansible.com/tower) for an overview.
options:
description:
@@ -58,7 +58,7 @@ extends_documentation_fragment: awx.awx.auth
EXAMPLES = '''
- name: Use CyberArk Lookup credential as password source
tower_credential_input_source:
credential_input_source:
input_field_name: password
target_credential: new_cred
source_credential: cyberark_lookup

View File

@@ -15,11 +15,11 @@ ANSIBLE_METADATA = {'status': ['preview'], 'supported_by': 'community', 'metadat
DOCUMENTATION = '''
---
module: tower_credential_type
module: credential_type
author: "Adrien Fleury (@fleu42)"
short_description: Create, update, or destroy custom Ansible Tower credential type.
short_description: Create, update, or destroy custom Automation Controller credential type.
description:
- Create, update, or destroy Ansible Tower credential type. See
- Create, update, or destroy Automation Controller credential type. See
U(https://www.ansible.com/tower) for an overview.
options:
name:
@@ -49,7 +49,7 @@ options:
description:
- >-
Enter injectors using either JSON or YAML syntax. Refer to the
Ansible Tower documentation for example syntax.
Automation Controller documentation for example syntax.
type: dict
state:
description:
@@ -62,7 +62,7 @@ extends_documentation_fragment: awx.awx.auth
EXAMPLES = '''
- tower_credential_type:
- credential_type:
name: Nexus
description: Credentials type for Nexus
kind: cloud
@@ -71,7 +71,7 @@ EXAMPLES = '''
state: present
validate_certs: false
- tower_credential_type:
- credential_type:
name: Nexus
state: absent
'''

View File

@@ -14,11 +14,11 @@ ANSIBLE_METADATA = {'metadata_version': '1.1', 'status': ['preview'], 'supported
DOCUMENTATION = '''
---
module: tower_execution_environment
module: execution_environment
author: "Shane McDonald (@shanemcd)"
short_description: create, update, or destroy Execution Environments in Ansible Tower.
short_description: create, update, or destroy Execution Environments in Automation Controller.
description:
- Create, update, or destroy Execution Environments in Ansible Tower. See
- Create, update, or destroy Execution Environments in Automation Controller. See
U(https://www.ansible.com/tower) for an overview.
options:
name:
@@ -61,7 +61,7 @@ extends_documentation_fragment: awx.awx.auth
EXAMPLES = '''
- name: Add EE to Tower
tower_execution_environment:
execution_environment:
name: "My EE"
image: quay.io/ansible/awx-ee
'''

View File

@@ -14,12 +14,12 @@ ANSIBLE_METADATA = {'metadata_version': '1.1', 'status': ['preview'], 'supported
DOCUMENTATION = '''
---
module: tower_export
module: export
author: "John Westcott IV (@john-westcott-iv)"
version_added: "3.7"
short_description: export resources from Ansible Tower.
short_description: export resources from Automation Controller.
description:
- Export assets from Ansible Tower.
- Export assets from Automation Controller.
options:
all:
description:
@@ -83,15 +83,15 @@ extends_documentation_fragment: awx.awx.auth
EXAMPLES = '''
- name: Export all tower assets
tower_export:
export:
all: True
- name: Export all inventories
tower_export:
export:
inventory: 'all'
- name: Export a job template named "My Template" and all Credentials
tower_export:
export:
job_template: "My Template"
credential: 'all'
'''

View File

@@ -14,11 +14,11 @@ ANSIBLE_METADATA = {'metadata_version': '1.1', 'status': ['preview'], 'supported
DOCUMENTATION = '''
---
module: tower_group
module: group
author: "Wayne Witzel III (@wwitzel3)"
short_description: create, update, or destroy Ansible Tower group.
short_description: create, update, or destroy Automation Controller group.
description:
- Create, update, or destroy Ansible Tower groups. See
- Create, update, or destroy Automation Controller groups. See
U(https://www.ansible.com/tower) for an overview.
options:
name:
@@ -79,7 +79,7 @@ extends_documentation_fragment: awx.awx.auth
EXAMPLES = '''
- name: Add tower group
tower_group:
group:
name: localhost
description: "Local Host Group"
inventory: "Local Inventory"
@@ -87,7 +87,7 @@ EXAMPLES = '''
tower_config_file: "~/tower_cli.cfg"
- name: Add tower group
tower_group:
group:
name: Cities
description: "Local Host Group"
inventory: Default Inventory

View File

@@ -14,11 +14,11 @@ ANSIBLE_METADATA = {'metadata_version': '1.1', 'status': ['preview'], 'supported
DOCUMENTATION = '''
---
module: tower_host
module: host
author: "Wayne Witzel III (@wwitzel3)"
short_description: create, update, or destroy Ansible Tower host.
short_description: create, update, or destroy Automation Controller host.
description:
- Create, update, or destroy Ansible Tower hosts. See
- Create, update, or destroy Automation Controller hosts. See
U(https://www.ansible.com/tower) for an overview.
options:
name:
@@ -60,7 +60,7 @@ extends_documentation_fragment: awx.awx.auth
EXAMPLES = '''
- name: Add tower host
tower_host:
host:
name: localhost
description: "Local Host Group"
inventory: "Local Inventory"

View File

@@ -14,12 +14,12 @@ ANSIBLE_METADATA = {'metadata_version': '1.1', 'status': ['preview'], 'supported
DOCUMENTATION = '''
---
module: tower_import
module: import
author: "John Westcott (@john-westcott-iv)"
version_added: "3.7"
short_description: import resources into Ansible Tower.
short_description: import resources into Automation Controller.
description:
- Import assets into Ansible Tower. See
- Import assets into Automation Controller. See
U(https://www.ansible.com/tower) for an overview.
options:
assets:
@@ -35,16 +35,16 @@ extends_documentation_fragment: awx.awx.auth
EXAMPLES = '''
- name: Export all assets
tower_export:
export:
all: True
register: export_output
- name: Import all tower assets from our export
tower_import:
import:
assets: "{{ export_output.assets }}"
- name: Load data from a json file created by a command like awx export --organization Default
tower_import:
import:
assets: "{{ lookup('file', 'org.json') | from_json() }}"
'''

View File

@@ -14,12 +14,12 @@ ANSIBLE_METADATA = {'metadata_version': '1.1', 'status': ['preview'], 'supported
DOCUMENTATION = '''
---
module: tower_instance_group
module: instance_group
author: "John Westcott IV (@john-westcott-iv)"
version_added: "4.0"
short_description: create, update, or destroy Ansible Tower instance groups.
short_description: create, update, or destroy Automation Controller instance groups.
description:
- Create, update, or destroy Ansible Tower instance groups. See
- Create, update, or destroy Automation Controller instance groups. See
U(https://www.ansible.com/tower) for an overview.
options:
name:

View File

@@ -14,11 +14,11 @@ ANSIBLE_METADATA = {'metadata_version': '1.1', 'status': ['preview'], 'supported
DOCUMENTATION = '''
---
module: tower_inventory
module: inventory
author: "Wayne Witzel III (@wwitzel3)"
short_description: create, update, or destroy Ansible Tower inventory.
short_description: create, update, or destroy Automation Controller inventory.
description:
- Create, update, or destroy Ansible Tower inventories. See
- Create, update, or destroy Automation Controller inventories. See
U(https://www.ansible.com/tower) for an overview.
options:
name:
@@ -78,7 +78,7 @@ extends_documentation_fragment: awx.awx.auth
EXAMPLES = '''
- name: Add tower inventory
tower_inventory:
inventory:
name: "Foo Inventory"
description: "Our Foo Cloud Servers"
organization: "Bar Org"
@@ -86,7 +86,7 @@ EXAMPLES = '''
tower_config_file: "~/tower_cli.cfg"
- name: Copy tower inventory
tower_inventory:
inventory:
name: Copy Foo Inventory
copy_from: Default Inventory
description: "Our Foo Cloud Servers"

View File

@@ -14,11 +14,11 @@ ANSIBLE_METADATA = {'metadata_version': '1.1', 'status': ['preview'], 'supported
DOCUMENTATION = '''
---
module: tower_inventory_source
module: inventory_source
author: "Adrien Fleury (@fleu42)"
short_description: create, update, or destroy Ansible Tower inventory source.
short_description: create, update, or destroy Automation Controller inventory source.
description:
- Create, update, or destroy Ansible Tower inventory source. See
- Create, update, or destroy Automation Controller inventory source. See
U(https://www.ansible.com/tower) for an overview.
options:
name:
@@ -138,7 +138,7 @@ extends_documentation_fragment: awx.awx.auth
EXAMPLES = '''
- name: Add an inventory source
tower_inventory_source:
inventory_source:
name: "source-inventory"
description: Source for inventory
inventory: previously-created-inventory

View File

@@ -14,11 +14,11 @@ ANSIBLE_METADATA = {'metadata_version': '1.1', 'status': ['preview'], 'supported
DOCUMENTATION = '''
---
module: tower_inventory_source_update
module: inventory_source_update
author: "Bianca Henderson (@beeankha)"
short_description: Update inventory source(s).
description:
- Update Ansible Tower inventory source(s). See
- Update Automation Controller inventory source(s). See
U(https://www.ansible.com/tower) for an overview.
options:
name:
@@ -58,16 +58,16 @@ extends_documentation_fragment: awx.awx.auth
EXAMPLES = '''
- name: Update a single inventory source
tower_inventory_source_update:
inventory_source_update:
name: "Example Inventory Source"
inventory: "My Inventory"
organization: Default
- name: Update all inventory sources
tower_inventory_source_update:
inventory_source_update:
name: "{{ item }}"
inventory: "My Other Inventory"
loop: "{{ query('awx.awx.tower_api', 'inventory_sources', query_params={ 'inventory': 30 }, return_ids=True ) }}"
loop: "{{ query('awx.awx.controller_api', 'inventory_sources', query_params={ 'inventory': 30 }, return_ids=True ) }}"
'''
RETURN = '''

View File

@@ -14,11 +14,11 @@ ANSIBLE_METADATA = {'metadata_version': '1.1', 'status': ['preview'], 'supported
DOCUMENTATION = '''
---
module: tower_job_cancel
module: job_cancel
author: "Wayne Witzel III (@wwitzel3)"
short_description: Cancel an Ansible Tower Job.
short_description: Cancel an Automation Controller Job.
description:
- Cancel Ansible Tower jobs. See
- Cancel Automation Controller jobs. See
U(https://www.ansible.com/tower) for an overview.
options:
job_id:
@@ -36,7 +36,7 @@ extends_documentation_fragment: awx.awx.auth
EXAMPLES = '''
- name: Cancel job
tower_job_cancel:
job_cancel:
job_id: job.id
'''

View File

@@ -14,11 +14,11 @@ ANSIBLE_METADATA = {'metadata_version': '1.1', 'status': ['preview'], 'supported
DOCUMENTATION = '''
---
module: tower_job_launch
module: job_launch
author: "Wayne Witzel III (@wwitzel3)"
short_description: Launch an Ansible Job.
description:
- Launch an Ansible Tower jobs. See
- Launch an Automation Controller jobs. See
U(https://www.ansible.com/tower) for an overview.
options:
name:
@@ -107,12 +107,12 @@ extends_documentation_fragment: awx.awx.auth
EXAMPLES = '''
- name: Launch a job
tower_job_launch:
job_launch:
job_template: "My Job Template"
register: job
- name: Launch a job template with extra_vars on remote Tower instance
tower_job_launch:
job_launch:
job_template: "My Job Template"
extra_vars:
var1: "My First Variable"
@@ -121,13 +121,13 @@ EXAMPLES = '''
job_type: run
- name: Launch a job with inventory and credential
tower_job_launch:
job_launch:
job_template: "My Job Template"
inventory: "My Inventory"
credential: "My Credential"
register: job
- name: Wait for job max 120s
tower_job_wait:
job_wait:
job_id: "{{ job.id }}"
timeout: 120
'''

View File

@@ -14,11 +14,11 @@ ANSIBLE_METADATA = {'metadata_version': '1.1', 'status': ['preview'], 'supported
DOCUMENTATION = '''
---
module: tower_job_list
module: job_list
author: "Wayne Witzel III (@wwitzel3)"
short_description: List Ansible Tower jobs.
short_description: List Automation Controller jobs.
description:
- List Ansible Tower jobs. See
- List Automation Controller jobs. See
U(https://www.ansible.com/tower) for an overview.
options:
status:
@@ -45,7 +45,7 @@ extends_documentation_fragment: awx.awx.auth
EXAMPLES = '''
- name: List running jobs for the testing.yml playbook
tower_job_list:
job_list:
status: running
query: {"playbook": "testing.yml"}
tower_config_file: "~/tower_cli.cfg"

View File

@@ -14,11 +14,11 @@ ANSIBLE_METADATA = {'metadata_version': '1.1', 'status': ['preview'], 'supported
DOCUMENTATION = '''
---
module: tower_job_template
module: job_template
author: "Wayne Witzel III (@wwitzel3)"
short_description: create, update, or destroy Ansible Tower job templates.
short_description: create, update, or destroy Automation Controller job templates.
description:
- Create, update, or destroy Ansible Tower job templates. See
- Create, update, or destroy Automation Controller job templates. See
U(https://www.ansible.com/tower) for an overview.
options:
name:
@@ -305,7 +305,7 @@ notes:
EXAMPLES = '''
- name: Create Tower Ping job template
tower_job_template:
job_template:
name: "Ping"
job_type: "run"
organization: "Default"
@@ -320,20 +320,20 @@ EXAMPLES = '''
survey_spec: "{{ lookup('file', 'my_survey.json') }}"
- name: Add start notification to Job Template
tower_job_template:
job_template:
name: "Ping"
notification_templates_started:
- Notification1
- Notification2
- name: Remove Notification1 start notification from Job Template
tower_job_template:
job_template:
name: "Ping"
notification_templates_started:
- Notification2
- name: Copy Job Template
tower_job_template:
job_template:
name: copy job template
copy_from: test job template
job_type: "run"

View File

@@ -14,11 +14,11 @@ ANSIBLE_METADATA = {'metadata_version': '1.1', 'status': ['preview'], 'supported
DOCUMENTATION = '''
---
module: tower_job_wait
module: job_wait
author: "Wayne Witzel III (@wwitzel3)"
short_description: Wait for Ansible Tower job to finish.
short_description: Wait for Automation Controller job to finish.
description:
- Wait for Ansible Tower job to finish and report success or failure. See
- Wait for Automation Controller job to finish and report success or failure. See
U(https://www.ansible.com/tower) for an overview.
options:
job_id:
@@ -58,12 +58,12 @@ extends_documentation_fragment: awx.awx.auth
EXAMPLES = '''
- name: Launch a job
tower_job_launch:
job_launch:
job_template: "My Job Template"
register: job
- name: Wait for job max 120s
tower_job_wait:
job_wait:
job_id: "{{ job.id }}"
timeout: 120
'''

View File

@@ -14,11 +14,11 @@ ANSIBLE_METADATA = {'metadata_version': '1.1', 'status': ['preview'], 'supported
DOCUMENTATION = '''
---
module: tower_label
module: label
author: "Wayne Witzel III (@wwitzel3)"
short_description: create, update, or destroy Ansible Tower labels.
short_description: create, update, or destroy Automation Controller labels.
description:
- Create, update, or destroy Ansible Tower labels. See
- Create, update, or destroy Automation Controller labels. See
U(https://www.ansible.com/tower) for an overview.
- Note, labels can only be created via the Tower API, they can not be deleted.
Once they are fully disassociated the API will clean them up on its own.
@@ -48,7 +48,7 @@ extends_documentation_fragment: awx.awx.auth
EXAMPLES = '''
- name: Add label to tower organization
tower_label:
label:
name: Custom Label
organization: My Organization
'''

View File

@@ -13,11 +13,11 @@ ANSIBLE_METADATA = {'metadata_version': '1.1', 'status': ['preview'], 'supported
DOCUMENTATION = '''
---
module: tower_license
module: license
author: "John Westcott IV (@john-westcott-iv)"
short_description: Set the license for Ansible Tower
short_description: Set the license for Automation Controller
description:
- Get or Set Ansible Tower license. See
- Get or Set Automation Controller license. See
U(https://www.ansible.com/tower) for an overview.
options:
manifest:
@@ -39,7 +39,7 @@ RETURN = ''' # '''
EXAMPLES = '''
- name: Set the license using a file
tower_license:
license:
manifest: "/tmp/my_manifest.zip"
'''

View File

@@ -13,7 +13,7 @@ ANSIBLE_METADATA = {'metadata_version': '1.1', 'status': ['preview'], 'supported
DOCUMENTATION = '''
---
module: tower_meta
module: meta
author: "Alan Rominger (@alancoding)"
short_description: Returns metadata about the collection this module lives in.
description:
@@ -49,7 +49,7 @@ version:
EXAMPLES = '''
- tower_meta:
- meta:
register: result
- name: Show details about the collection
@@ -57,7 +57,7 @@ EXAMPLES = '''
- name: Load the UI setting without hard-coding the collection name
debug:
msg: "{{ lookup(result.prefix + '.tower_api', 'settings/ui') }}"
msg: "{{ lookup(result.prefix + '.controller_api', 'settings/ui') }}"
'''

View File

@@ -14,11 +14,11 @@ ANSIBLE_METADATA = {'metadata_version': '1.1', 'status': ['preview'], 'supported
DOCUMENTATION = '''
---
module: tower_notification_template
module: notification_template
author: "Samuel Carpentier (@samcarpentier)"
short_description: create, update, or destroy Ansible Tower notification.
short_description: create, update, or destroy Automation Controller notification.
description:
- Create, update, or destroy Ansible Tower notifications. See
- Create, update, or destroy Automation Controller notifications. See
U(https://www.ansible.com/tower) for an overview.
options:
name:
@@ -210,7 +210,7 @@ extends_documentation_fragment: awx.awx.auth
EXAMPLES = '''
- name: Add Slack notification with custom messages
tower_notification_template:
notification_template:
name: slack notification
organization: Default
notification_type: slack
@@ -229,7 +229,7 @@ EXAMPLES = '''
tower_config_file: "~/tower_cli.cfg"
- name: Add webhook notification
tower_notification_template:
notification_template:
name: webhook notification
notification_type: webhook
notification_configuration:
@@ -240,7 +240,7 @@ EXAMPLES = '''
tower_config_file: "~/tower_cli.cfg"
- name: Add email notification
tower_notification_template:
notification_template:
name: email notification
notification_type: email
notification_configuration:
@@ -257,7 +257,7 @@ EXAMPLES = '''
tower_config_file: "~/tower_cli.cfg"
- name: Add twilio notification
tower_notification_template:
notification_template:
name: twilio notification
notification_type: twilio
notification_configuration:
@@ -270,7 +270,7 @@ EXAMPLES = '''
tower_config_file: "~/tower_cli.cfg"
- name: Add PagerDuty notification
tower_notification_template:
notification_template:
name: pagerduty notification
notification_type: pagerduty
notification_configuration:
@@ -282,7 +282,7 @@ EXAMPLES = '''
tower_config_file: "~/tower_cli.cfg"
- name: Add IRC notification
tower_notification_template:
notification_template:
name: irc notification
notification_type: irc
notification_configuration:
@@ -297,13 +297,13 @@ EXAMPLES = '''
tower_config_file: "~/tower_cli.cfg"
- name: Delete notification
tower_notification_template:
notification_template:
name: old notification
state: absent
tower_config_file: "~/tower_cli.cfg"
- name: Copy webhook notification
tower_notification_template:
notification_template:
name: foo notification
copy_from: email notification
organization: Foo

View File

@@ -14,11 +14,11 @@ ANSIBLE_METADATA = {'metadata_version': '1.1', 'status': ['preview'], 'supported
DOCUMENTATION = '''
---
module: tower_organization
module: organization
author: "Wayne Witzel III (@wwitzel3)"
short_description: create, update, or destroy Ansible Tower organizations
short_description: create, update, or destroy Automation Controller organizations
description:
- Create, update, or destroy Ansible Tower organizations. See
- Create, update, or destroy Automation Controller organizations. See
U(https://www.ansible.com/tower) for an overview.
options:
name:
@@ -87,21 +87,21 @@ extends_documentation_fragment: awx.awx.auth
EXAMPLES = '''
- name: Create tower organization
tower_organization:
organization:
name: "Foo"
description: "Foo bar organization"
state: present
tower_config_file: "~/tower_cli.cfg"
- name: Create tower organization using 'foo-venv' as default Python virtualenv
tower_organization:
organization:
name: "Foo"
description: "Foo bar organization using foo-venv"
state: present
tower_config_file: "~/tower_cli.cfg"
- name: Create tower organization that pulls content from galaxy.ansible.com
tower_organization:
organization:
name: "Foo"
state: present
galaxy_credentials:

View File

@@ -14,11 +14,11 @@ ANSIBLE_METADATA = {'metadata_version': '1.1', 'status': ['preview'], 'supported
DOCUMENTATION = '''
---
module: tower_project
module: project
author: "Wayne Witzel III (@wwitzel3)"
short_description: create, update, or destroy Ansible Tower projects
short_description: create, update, or destroy Automation Controller projects
description:
- Create, update, or destroy Ansible Tower projects. See
- Create, update, or destroy Automation Controller projects. See
U(https://www.ansible.com/tower) for an overview.
options:
name:
@@ -171,7 +171,7 @@ extends_documentation_fragment: awx.awx.auth
EXAMPLES = '''
- name: Add tower project
tower_project:
project:
name: "Foo"
description: "Foo bar project"
organization: "test"
@@ -179,7 +179,7 @@ EXAMPLES = '''
tower_config_file: "~/tower_cli.cfg"
- name: Add Tower Project with cache timeout
tower_project:
project:
name: "Foo"
description: "Foo bar project"
organization: "test"
@@ -189,7 +189,7 @@ EXAMPLES = '''
tower_config_file: "~/tower_cli.cfg"
- name: Copy tower project
tower_project:
project:
name: copy
copy_from: test
description: Foo copy project

View File

@@ -11,11 +11,11 @@ ANSIBLE_METADATA = {'metadata_version': '1.0', 'status': ['preview'], 'supported
DOCUMENTATION = '''
---
module: tower_project_update
module: project_update
author: "Sean Sullivan (@sean-m-sullivan)"
short_description: Update a Project in Ansible Tower
short_description: Update a Project in Automation Controller
description:
- Update a Ansible Tower Project. See
- Update a Automation Controller Project. See
U(https://www.ansible.com/tower) for an overview.
options:
name:
@@ -67,12 +67,12 @@ status:
EXAMPLES = '''
- name: Launch a project with a timeout of 10 seconds
tower_project_update:
project_update:
project: "Networking Project"
timeout: 10
- name: Launch a Project with extra_vars without waiting
tower_project_update:
project_update:
project: "Networking Project"
wait: False
'''

View File

@@ -14,15 +14,15 @@ ANSIBLE_METADATA = {'metadata_version': '1.1', 'status': ['deprecated'], 'suppor
DOCUMENTATION = '''
---
module: tower_receive
module: receive
deprecated:
removed_in: "14.0.0"
why: Deprecated in favor of upcoming C(_export) module.
alternative: Once published, use M(tower_export) instead.
author: "John Westcott IV (@john-westcott-iv)"
short_description: Receive assets from Ansible Tower.
short_description: Receive assets from Automation Controller.
description:
- Receive assets from Ansible Tower. See
- Receive assets from Automation Controller. See
U(https://www.ansible.com/tower) for an overview.
options:
all:
@@ -102,17 +102,17 @@ extends_documentation_fragment: awx.awx.auth_legacy
EXAMPLES = '''
- name: Export all tower assets
tower_receive:
receive:
all: True
tower_config_file: "~/tower_cli.cfg"
- name: Export all inventories
tower_receive:
receive:
inventory:
- all
- name: Export a job template named "My Template" and all Credentials
tower_receive:
receive:
job_template:
- "My Template"
credential:

View File

@@ -14,12 +14,12 @@ ANSIBLE_METADATA = {'metadata_version': '1.1', 'status': ['preview'], 'supported
DOCUMENTATION = '''
---
module: tower_role
module: role
author: "Wayne Witzel III (@wwitzel3)"
short_description: grant or revoke an Ansible Tower role.
short_description: grant or revoke an Automation Controller role.
description:
- Roles are used for access control, this module is for managing user access to server resources.
- Grant or revoke Ansible Tower roles to users. See U(https://www.ansible.com/tower) for an overview.
- Grant or revoke Automation Controller roles to users. See U(https://www.ansible.com/tower) for an overview.
options:
user:
description:
@@ -131,14 +131,14 @@ extends_documentation_fragment: awx.awx.auth
EXAMPLES = '''
- name: Add jdoe to the member role of My Team
tower_role:
role:
user: jdoe
target_team: "My Team"
role: member
state: present
- name: Add Joe to multiple job templates and a workflow
tower_role:
role:
user: joe
role: execute
workflow: test-role-workflow

View File

@@ -14,11 +14,11 @@ ANSIBLE_METADATA = {'metadata_version': '1.1', 'status': ['preview'], 'supported
DOCUMENTATION = '''
---
module: tower_schedule
module: schedule
author: "John Westcott IV (@john-westcott-iv)"
short_description: create, update, or destroy Ansible Tower schedules.
short_description: create, update, or destroy Automation Controller schedules.
description:
- Create, update, or destroy Ansible Tower schedules. See
- Create, update, or destroy Automation Controller schedules. See
U(https://www.ansible.com/tower) for an overview.
options:
rrule:
@@ -119,7 +119,7 @@ extends_documentation_fragment: awx.awx.auth
EXAMPLES = '''
- name: Build a schedule for Demo Job Template
tower_schedule:
schedule:
name: "{{ sched1 }}"
state: present
unified_job_template: "Demo Job Template"
@@ -127,7 +127,7 @@ EXAMPLES = '''
register: result
- name: Build the same schedule using the rrule plugin
tower_schedule:
schedule:
name: "{{ sched1 }}"
state: present
unified_job_template: "Demo Job Template"

View File

@@ -14,15 +14,15 @@ ANSIBLE_METADATA = {'metadata_version': '1.1', 'status': ['deprecated'], 'suppor
DOCUMENTATION = '''
---
module: tower_send
module: send
deprecated:
removed_in: "14.0.0"
why: Deprecated in favor of upcoming C(_import) module.
alternative: Once published, use M(tower_import) instead.
author: "John Westcott IV (@john-westcott-iv)"
short_description: Send assets to Ansible Tower.
short_description: Send assets to Automation Controller.
description:
- Send assets to Ansible Tower. See
- Send assets to Automation Controller. See
U(https://www.ansible.com/tower) for an overview.
options:
assets:
@@ -63,7 +63,7 @@ extends_documentation_fragment: awx.awx.auth_legacy
EXAMPLES = '''
- name: Import all tower assets
tower_send:
send:
assets: "{{ export_output.assets }}"
tower_config_file: "~/tower_cli.cfg"
'''

View File

@@ -14,11 +14,11 @@ ANSIBLE_METADATA = {'metadata_version': '1.1', 'status': ['preview'], 'supported
DOCUMENTATION = '''
---
module: tower_settings
module: settings
author: "Nikhil Jain (@jainnikhil30)"
short_description: Modify Ansible Tower settings.
short_description: Modify Automation Controller settings.
description:
- Modify Ansible Tower settings. See
- Modify Automation Controller settings. See
U(https://www.ansible.com/tower) for an overview.
options:
name:
@@ -42,25 +42,25 @@ extends_documentation_fragment: awx.awx.auth
EXAMPLES = '''
- name: Set the value of AWX_ISOLATION_BASE_PATH
tower_settings:
settings:
name: AWX_ISOLATION_BASE_PATH
value: "/tmp"
register: testing_settings
- name: Set the value of AWX_ISOLATION_SHOW_PATHS
tower_settings:
settings:
name: "AWX_ISOLATION_SHOW_PATHS"
value: "'/var/lib/awx/projects/', '/tmp'"
register: testing_settings
- name: Set the LDAP Auth Bind Password
tower_settings:
settings:
name: "AUTH_LDAP_BIND_PASSWORD"
value: "Password"
no_log: true
- name: Set all the LDAP Auth Bind Params
tower_settings:
settings:
settings:
AUTH_LDAP_BIND_PASSWORD: "password"
AUTH_LDAP_USER_ATTR_MAP:

View File

@@ -14,11 +14,11 @@ ANSIBLE_METADATA = {'metadata_version': '1.1', 'status': ['preview'], 'supported
DOCUMENTATION = '''
---
module: tower_team
module: team
author: "Wayne Witzel III (@wwitzel3)"
short_description: create, update, or destroy Ansible Tower team.
short_description: create, update, or destroy Automation Controller team.
description:
- Create, update, or destroy Ansible Tower teams. See
- Create, update, or destroy Automation Controller teams. See
U(https://www.ansible.com/tower) for an overview.
options:
name:
@@ -51,7 +51,7 @@ extends_documentation_fragment: awx.awx.auth
EXAMPLES = '''
- name: Create tower team
tower_team:
team:
name: Team Name
description: Team Description
organization: test-org

View File

@@ -14,12 +14,12 @@ ANSIBLE_METADATA = {'metadata_version': '1.1', 'status': ['preview'], 'supported
DOCUMENTATION = '''
---
module: tower_token
module: token
author: "John Westcott IV (@john-westcott-iv)"
version_added: "2.3"
short_description: create, update, or destroy Ansible Tower tokens.
short_description: create, update, or destroy Automation Controller tokens.
description:
- Create or destroy Ansible Tower tokens. See
- Create or destroy Automation Controller tokens. See
U(https://www.ansible.com/tower) for an overview.
- In addition, the module sets an Ansible fact which can be passed into other
tower_* modules as the parameter tower_oauthtoken. See examples for usage.
@@ -66,19 +66,19 @@ extends_documentation_fragment: awx.awx.auth
EXAMPLES = '''
- block:
- name: Create a new token using an existing token
tower_token:
token:
description: '{{ token_description }}'
scope: "write"
state: present
tower_oauthtoken: "{{ my_existing_token }}"
- name: Delete this token
tower_token:
token:
existing_token: "{{ tower_token }}"
state: absent
- name: Create a new token using username/password
tower_token:
token:
description: '{{ token_description }}'
scope: "write"
state: present
@@ -86,24 +86,24 @@ EXAMPLES = '''
tower_password: "{{ my_password }}"
- name: Use our new token to make another call
tower_job_list:
job_list:
tower_oauthtoken: "{{ tower_token }}"
always:
- name: Delete our Token with the token we created
tower_token:
token:
existing_token: "{{ tower_token }}"
state: absent
when: tower_token is defined
- name: Delete a token by its id
tower_token:
token:
existing_token_id: 4
state: absent
'''
RETURN = '''
tower_token:
token:
type: dict
description: An Ansible Fact variable representing a Tower token object which can be used for auth in subsequent modules. See examples for usage.
contains:

View File

@@ -14,11 +14,11 @@ ANSIBLE_METADATA = {'metadata_version': '1.1', 'status': ['preview'], 'supported
DOCUMENTATION = '''
---
module: tower_user
module: user
author: "John Westcott IV (@john-westcott-iv)"
short_description: create, update, or destroy Ansible Tower users.
short_description: create, update, or destroy Automation Controller users.
description:
- Create, update, or destroy Ansible Tower users. See
- Create, update, or destroy Automation Controller users. See
U(https://www.ansible.com/tower) for an overview.
options:
username:
@@ -72,7 +72,7 @@ extends_documentation_fragment: awx.awx.auth
EXAMPLES = '''
- name: Add tower user
tower_user:
user:
username: jdoe
password: foobarbaz
email: jdoe@example.org
@@ -82,7 +82,7 @@ EXAMPLES = '''
tower_config_file: "~/tower_cli.cfg"
- name: Add tower user as a system administrator
tower_user:
user:
username: jdoe
password: foobarbaz
email: jdoe@example.org
@@ -91,7 +91,7 @@ EXAMPLES = '''
tower_config_file: "~/tower_cli.cfg"
- name: Add tower user as a system auditor
tower_user:
user:
username: jdoe
password: foobarbaz
email: jdoe@example.org
@@ -100,7 +100,7 @@ EXAMPLES = '''
tower_config_file: "~/tower_cli.cfg"
- name: Delete tower user
tower_user:
user:
username: jdoe
email: jdoe@example.org
state: absent

View File

@@ -18,7 +18,7 @@ ANSIBLE_METADATA = {
DOCUMENTATION = """
---
module: tower_workflow_approval
module: workflow_approval
author: "Sean Sullivan (@sean-m-sullivan)"
short_description: Approve an approval node in a workflow job.
description:
@@ -58,13 +58,13 @@ extends_documentation_fragment: awx.awx.auth
EXAMPLES = """
- name: Launch a workflow with a timeout of 10 seconds
tower_workflow_launch:
workflow_launch:
workflow_template: "Test Workflow"
wait: False
register: workflow
- name: Wait for approval node to activate and approve
tower_workflow_approval:
workflow_approval:
workflow_job_id: "{{ workflow.id }}"
name: Approve Me
interval: 10

View File

@@ -14,13 +14,13 @@ ANSIBLE_METADATA = {'metadata_version': '1.1', 'status': ['preview'], 'supported
DOCUMENTATION = '''
---
module: tower_workflow_job_template
module: workflow_job_template
author: "John Westcott IV (@john-westcott-iv)"
short_description: create, update, or destroy Ansible Tower workflow job templates.
short_description: create, update, or destroy Automation Controller workflow job templates.
description:
- Create, update, or destroy Ansible Tower workflow job templates.
- Create, update, or destroy Automation Controller workflow job templates.
- Replaces the deprecated tower_workflow_template module.
- Use the tower_workflow_job_template_node after this, or use the schema paramater to build the workflow's graph
- Use the tower_workflow_job_template_node after this, or use the schema parameter to build the workflow's graph
options:
name:
description:
@@ -328,13 +328,13 @@ extends_documentation_fragment: awx.awx.auth
EXAMPLES = '''
- name: Create a workflow job template
tower_workflow_job_template:
workflow_job_template:
name: example-workflow
description: created by Ansible Playbook
organization: Default
- name: Create a workflow job template with schema in template
awx.awx.tower_workflow_job_template:
awx.awx.workflow_job_template:
name: example-workflow
inventory: Demo Inventory
extra_vars: {'foo': 'bar', 'another-foo': {'barz': 'bar2'}}
@@ -391,13 +391,13 @@ EXAMPLES = '''
register: result
- name: Copy a workflow job template
tower_workflow_job_template:
workflow_job_template:
name: copy-workflow
copy_from: example-workflow
organization: Foo
- name: Create a workflow job template with schema in template
awx.awx.tower_workflow_job_template:
awx.awx.workflow_job_template:
name: example-workflow
inventory: Demo Inventory
extra_vars: {'foo': 'bar', 'another-foo': {'barz': 'bar2'}}

View File

@@ -14,11 +14,11 @@ ANSIBLE_METADATA = {'metadata_version': '1.1', 'status': ['preview'], 'supported
DOCUMENTATION = '''
---
module: tower_workflow_job_template_node
module: workflow_job_template_node
author: "John Westcott IV (@john-westcott-iv)"
short_description: create, update, or destroy Ansible Tower workflow job template nodes.
short_description: create, update, or destroy Automation Controller workflow job template nodes.
description:
- Create, update, or destroy Ansible Tower workflow job template nodes.
- Create, update, or destroy Automation Controller workflow job template nodes.
- Use this to build a graph for a workflow, which dictates what the workflow runs.
- Replaces the deprecated tower_workflow_template module schema command.
- You can create nodes first, and link them afterwards, and not worry about ordering.
@@ -158,7 +158,7 @@ extends_documentation_fragment: awx.awx.auth
EXAMPLES = '''
- name: Create a node, follows tower_workflow_job_template example
tower_workflow_job_template_node:
workflow_job_template_node:
identifier: my-first-node
workflow: example-workflow
unified_job_template: jt-for-node-use
@@ -167,7 +167,7 @@ EXAMPLES = '''
foo_key: bar_value
- name: Create parent node for prior node
tower_workflow_job_template_node:
workflow_job_template_node:
identifier: my-root-node
workflow: example-workflow
unified_job_template: jt-for-node-use

View File

@@ -11,11 +11,11 @@ ANSIBLE_METADATA = {'metadata_version': '1.1', 'status': ['preview'], 'supported
DOCUMENTATION = '''
---
module: tower_workflow_launch
module: workflow_launch
author: "John Westcott IV (@john-westcott-iv)"
short_description: Run a workflow in Ansible Tower
short_description: Run a workflow in Automation Controller
description:
- Launch an Ansible Tower workflows. See
- Launch an Automation Controller workflows. See
U(https://www.ansible.com/tower) for an overview.
options:
name:
@@ -77,12 +77,12 @@ job_info:
EXAMPLES = '''
- name: Launch a workflow with a timeout of 10 seconds
tower_workflow_launch:
workflow_launch:
workflow_template: "Test Workflow"
timeout: 10
- name: Launch a Workflow with extra_vars without waiting
tower_workflow_launch:
workflow_launch:
workflow_template: "Test workflow"
extra_vars:
var1: My First Variable

View File

@@ -18,7 +18,7 @@ ANSIBLE_METADATA = {
DOCUMENTATION = """
---
module: tower_workflow_node_wait
module: workflow_node_wait
author: "Sean Sullivan (@sean-m-sullivan)"
short_description: Approve an approval node in a workflow job.
description:
@@ -52,13 +52,13 @@ extends_documentation_fragment: awx.awx.auth
EXAMPLES = """
- name: Launch a workflow with a timeout of 10 seconds
tower_workflow_launch:
workflow_launch:
workflow_template: "Test Workflow"
wait: False
register: workflow
- name: Wait for a workflow node to finish
tower_workflow_node_wait:
workflow_node_wait:
workflow_job_id: "{{ workflow.id }}"
name: Approval Data Step
timeout: 120

View File

@@ -14,13 +14,13 @@ ANSIBLE_METADATA = {'status': ['deprecated'], 'supported_by': 'community', 'meta
DOCUMENTATION = '''
---
module: tower_workflow_template
module: workflow_template
deprecated:
removed_in: "14.0.0"
why: Deprecated in favor of C(_workflow_job_template) and C(_workflow_job_template_node) modules.
alternative: Use M(tower_workflow_job_template) and M(_workflow_job_template_node) instead.
author: "Adrien Fleury (@fleu42)"
short_description: create, update, or destroy Ansible Tower workflow template.
short_description: create, update, or destroy Automation Controller workflow template.
description:
- A tower-cli based module for CRUD actions on workflow job templates.
- Enables use of the old schema functionality.
@@ -92,13 +92,13 @@ extends_documentation_fragment: awx.awx.auth_legacy
EXAMPLES = '''
- tower_workflow_template:
- workflow_template:
name: Workflow Template
description: My very first Workflow Template
organization: My optional Organization
schema: "{{ lookup('file', 'my_workflow.json') }}"
- tower_workflow_template:
- workflow_template:
name: Workflow Template
state: absent
'''