mirror of
https://github.com/ansible/awx.git
synced 2026-05-10 19:07:36 -02:30
Merge pull request #3819 from AlanCoding/collection_sanity_36
Make AWX collection "pass" sanity tests
This commit is contained in:
7
.gitignore
vendored
7
.gitignore
vendored
@@ -135,9 +135,10 @@ use_dev_supervisor.txt
|
|||||||
|
|
||||||
|
|
||||||
# Ansible module tests
|
# Ansible module tests
|
||||||
awx_collection_test_venv/
|
/awx_collection_test_venv/
|
||||||
awx_collection/*.tar.gz
|
/awx_collection/*.tar.gz
|
||||||
awx_collection/galaxy.yml
|
/awx_collection/galaxy.yml
|
||||||
|
/sanity/
|
||||||
|
|
||||||
.idea/*
|
.idea/*
|
||||||
*.unison.tmp
|
*.unison.tmp
|
||||||
|
|||||||
7
Makefile
7
Makefile
@@ -399,6 +399,13 @@ flake8_collection:
|
|||||||
|
|
||||||
test_collection_all: prepare_collection_venv test_collection flake8_collection
|
test_collection_all: prepare_collection_venv test_collection flake8_collection
|
||||||
|
|
||||||
|
test_collection_sanity:
|
||||||
|
rm -rf sanity
|
||||||
|
mkdir -p sanity/ansible_collections/awx
|
||||||
|
cp -Ra awx_collection sanity/ansible_collections/awx/awx # symlinks do not work
|
||||||
|
cd sanity/ansible_collections/awx/awx && git init && git add . # requires both this file structure and a git repo, so there you go
|
||||||
|
cd sanity/ansible_collections/awx/awx && ansible-test sanity --test validate-modules
|
||||||
|
|
||||||
build_collection:
|
build_collection:
|
||||||
ansible-playbook -i localhost, awx_collection/template_galaxy.yml -e collection_package=$(COLLECTION_PACKAGE) -e collection_namespace=$(COLLECTION_NAMESPACE) -e collection_version=$(VERSION)
|
ansible-playbook -i localhost, awx_collection/template_galaxy.yml -e collection_package=$(COLLECTION_PACKAGE) -e collection_namespace=$(COLLECTION_NAMESPACE) -e collection_version=$(VERSION)
|
||||||
ansible-galaxy collection build awx_collection --output-path=awx_collection
|
ansible-galaxy collection build awx_collection --output-path=awx_collection
|
||||||
|
|||||||
@@ -8,6 +8,17 @@ inside the folder `lib/ansible/modules/web_infrastructure/ansible_tower`
|
|||||||
as well as other folders for the inventory plugin, module utils, and
|
as well as other folders for the inventory plugin, module utils, and
|
||||||
doc fragment.
|
doc fragment.
|
||||||
|
|
||||||
|
## Release and Upgrade Notes
|
||||||
|
|
||||||
|
The release 7.0.0 of the `awx.awx` collection is intended to be identical
|
||||||
|
to the content prior to the migration, aside from changes necessary to
|
||||||
|
have it function as a collection.
|
||||||
|
|
||||||
|
The following notes are changes that may require changes to playbooks.
|
||||||
|
|
||||||
|
- Specifying `inputs` or `injectors` as strings in the
|
||||||
|
`tower_credential_type` module is no longer supported. Provide as dictionaries instead.
|
||||||
|
|
||||||
## Running
|
## Running
|
||||||
|
|
||||||
To use this collection, the "old" tower-cli needs to be installed
|
To use this collection, the "old" tower-cli needs to be installed
|
||||||
|
|||||||
@@ -130,7 +130,8 @@ options:
|
|||||||
become_method:
|
become_method:
|
||||||
description:
|
description:
|
||||||
- Become method to use for privilege escalation.
|
- Become method to use for privilege escalation.
|
||||||
choices: ["None", "sudo", "su", "pbrun", "pfexec", "pmrun"]
|
- Some examples are "None", "sudo", "su", "pbrun"
|
||||||
|
- Due to become plugins, these can be arbitrary
|
||||||
type: str
|
type: str
|
||||||
become_username:
|
become_username:
|
||||||
description:
|
description:
|
||||||
|
|||||||
@@ -28,10 +28,12 @@ options:
|
|||||||
description:
|
description:
|
||||||
- The name of the credential type.
|
- The name of the credential type.
|
||||||
required: True
|
required: True
|
||||||
|
type: str
|
||||||
description:
|
description:
|
||||||
description:
|
description:
|
||||||
- The description of the credential type to give more detail about it.
|
- The description of the credential type to give more detail about it.
|
||||||
required: False
|
required: False
|
||||||
|
type: str
|
||||||
kind:
|
kind:
|
||||||
description:
|
description:
|
||||||
- >-
|
- >-
|
||||||
@@ -40,24 +42,28 @@ options:
|
|||||||
for more information.
|
for more information.
|
||||||
choices: [ 'ssh', 'vault', 'net', 'scm', 'cloud', 'insights' ]
|
choices: [ 'ssh', 'vault', 'net', 'scm', 'cloud', 'insights' ]
|
||||||
required: False
|
required: False
|
||||||
|
type: str
|
||||||
inputs:
|
inputs:
|
||||||
description:
|
description:
|
||||||
- >-
|
- >-
|
||||||
Enter inputs using either JSON or YAML syntax. Refer to the Ansible
|
Enter inputs using either JSON or YAML syntax. Refer to the Ansible
|
||||||
Tower documentation for example syntax.
|
Tower documentation for example syntax.
|
||||||
required: False
|
required: False
|
||||||
|
type: dict
|
||||||
injectors:
|
injectors:
|
||||||
description:
|
description:
|
||||||
- >-
|
- >-
|
||||||
Enter injectors using either JSON or YAML syntax. Refer to the
|
Enter injectors using either JSON or YAML syntax. Refer to the
|
||||||
Ansible Tower documentation for example syntax.
|
Ansible Tower documentation for example syntax.
|
||||||
required: False
|
required: False
|
||||||
|
type: dict
|
||||||
state:
|
state:
|
||||||
description:
|
description:
|
||||||
- Desired state of the resource.
|
- Desired state of the resource.
|
||||||
required: False
|
required: False
|
||||||
default: "present"
|
default: "present"
|
||||||
choices: ["present", "absent"]
|
choices: ["present", "absent"]
|
||||||
|
type: str
|
||||||
validate_certs:
|
validate_certs:
|
||||||
description:
|
description:
|
||||||
- Tower option to avoid certificates check.
|
- Tower option to avoid certificates check.
|
||||||
|
|||||||
@@ -27,38 +27,50 @@ options:
|
|||||||
description:
|
description:
|
||||||
- The name to use for the group.
|
- The name to use for the group.
|
||||||
required: True
|
required: True
|
||||||
|
type: str
|
||||||
description:
|
description:
|
||||||
description:
|
description:
|
||||||
- The description to use for the group.
|
- The description to use for the group.
|
||||||
|
type: str
|
||||||
inventory:
|
inventory:
|
||||||
description:
|
description:
|
||||||
- Inventory the group should be made a member of.
|
- Inventory the group should be made a member of.
|
||||||
required: True
|
required: True
|
||||||
|
type: str
|
||||||
variables:
|
variables:
|
||||||
description:
|
description:
|
||||||
- Variables to use for the group, use C(@) for a file.
|
- Variables to use for the group, use C(@) for a file.
|
||||||
|
type: str
|
||||||
credential:
|
credential:
|
||||||
description:
|
description:
|
||||||
- Credential to use for the group.
|
- Credential to use for the group.
|
||||||
|
type: str
|
||||||
source:
|
source:
|
||||||
description:
|
description:
|
||||||
- The source to use for this group.
|
- The source to use for this group.
|
||||||
choices: ["manual", "file", "ec2", "rax", "vmware", "gce", "azure", "azure_rm", "openstack", "satellite6" , "cloudforms", "custom"]
|
choices: ["manual", "file", "ec2", "rax", "vmware", "gce", "azure", "azure_rm", "openstack", "satellite6" , "cloudforms", "custom"]
|
||||||
|
default: manual
|
||||||
|
type: str
|
||||||
source_regions:
|
source_regions:
|
||||||
description:
|
description:
|
||||||
- Regions for cloud provider.
|
- Regions for cloud provider.
|
||||||
|
type: str
|
||||||
source_vars:
|
source_vars:
|
||||||
description:
|
description:
|
||||||
- Override variables from source with variables from this field.
|
- Override variables from source with variables from this field.
|
||||||
|
type: str
|
||||||
instance_filters:
|
instance_filters:
|
||||||
description:
|
description:
|
||||||
- Comma-separated list of filter expressions for matching hosts.
|
- Comma-separated list of filter expressions for matching hosts.
|
||||||
|
type: str
|
||||||
group_by:
|
group_by:
|
||||||
description:
|
description:
|
||||||
- Limit groups automatically created from inventory source.
|
- Limit groups automatically created from inventory source.
|
||||||
|
type: str
|
||||||
source_script:
|
source_script:
|
||||||
description:
|
description:
|
||||||
- Inventory script to be used when group type is C(custom).
|
- Inventory script to be used when group type is C(custom).
|
||||||
|
type: str
|
||||||
overwrite:
|
overwrite:
|
||||||
description:
|
description:
|
||||||
- Delete child groups and hosts not found in source.
|
- Delete child groups and hosts not found in source.
|
||||||
@@ -67,6 +79,7 @@ options:
|
|||||||
overwrite_vars:
|
overwrite_vars:
|
||||||
description:
|
description:
|
||||||
- Override vars in child groups and hosts with those from external source.
|
- Override vars in child groups and hosts with those from external source.
|
||||||
|
type: bool
|
||||||
update_on_launch:
|
update_on_launch:
|
||||||
description:
|
description:
|
||||||
- Refresh inventory data from its source each time a job is run.
|
- Refresh inventory data from its source each time a job is run.
|
||||||
@@ -77,6 +90,7 @@ options:
|
|||||||
- Desired state of the resource.
|
- Desired state of the resource.
|
||||||
default: "present"
|
default: "present"
|
||||||
choices: ["present", "absent"]
|
choices: ["present", "absent"]
|
||||||
|
type: str
|
||||||
extends_documentation_fragment: awx.awx.auth
|
extends_documentation_fragment: awx.awx.auth
|
||||||
'''
|
'''
|
||||||
|
|
||||||
@@ -120,7 +134,7 @@ def main():
|
|||||||
group_by=dict(),
|
group_by=dict(),
|
||||||
source_script=dict(),
|
source_script=dict(),
|
||||||
overwrite=dict(type='bool', default=False),
|
overwrite=dict(type='bool', default=False),
|
||||||
overwrite_vars=dict(),
|
overwrite_vars=dict(type='bool', default=False),
|
||||||
update_on_launch=dict(type='bool', default=False),
|
update_on_launch=dict(type='bool', default=False),
|
||||||
state=dict(choices=['present', 'absent'], default='present'),
|
state=dict(choices=['present', 'absent'], default='present'),
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -27,13 +27,16 @@ options:
|
|||||||
description:
|
description:
|
||||||
- The name to use for the host.
|
- The name to use for the host.
|
||||||
required: True
|
required: True
|
||||||
|
type: str
|
||||||
description:
|
description:
|
||||||
description:
|
description:
|
||||||
- The description to use for the host.
|
- The description to use for the host.
|
||||||
|
type: str
|
||||||
inventory:
|
inventory:
|
||||||
description:
|
description:
|
||||||
- Inventory the host should be made a member of.
|
- Inventory the host should be made a member of.
|
||||||
required: True
|
required: True
|
||||||
|
type: str
|
||||||
enabled:
|
enabled:
|
||||||
description:
|
description:
|
||||||
- If the host should be enabled.
|
- If the host should be enabled.
|
||||||
@@ -42,11 +45,13 @@ options:
|
|||||||
variables:
|
variables:
|
||||||
description:
|
description:
|
||||||
- Variables to use for the host. Use C(@) for a file.
|
- Variables to use for the host. Use C(@) for a file.
|
||||||
|
type: str
|
||||||
state:
|
state:
|
||||||
description:
|
description:
|
||||||
- Desired state of the resource.
|
- Desired state of the resource.
|
||||||
choices: ["present", "absent"]
|
choices: ["present", "absent"]
|
||||||
default: "present"
|
default: "present"
|
||||||
|
type: str
|
||||||
extends_documentation_fragment: awx.awx.auth
|
extends_documentation_fragment: awx.awx.auth
|
||||||
'''
|
'''
|
||||||
|
|
||||||
|
|||||||
@@ -27,31 +27,38 @@ options:
|
|||||||
description:
|
description:
|
||||||
- The name to use for the inventory.
|
- The name to use for the inventory.
|
||||||
required: True
|
required: True
|
||||||
|
type: str
|
||||||
description:
|
description:
|
||||||
description:
|
description:
|
||||||
- The description to use for the inventory.
|
- The description to use for the inventory.
|
||||||
|
type: str
|
||||||
organization:
|
organization:
|
||||||
description:
|
description:
|
||||||
- Organization the inventory belongs to.
|
- Organization the inventory belongs to.
|
||||||
required: True
|
required: True
|
||||||
|
type: str
|
||||||
variables:
|
variables:
|
||||||
description:
|
description:
|
||||||
- Inventory variables. Use C(@) to get from file.
|
- Inventory variables. Use C(@) to get from file.
|
||||||
|
type: str
|
||||||
kind:
|
kind:
|
||||||
description:
|
description:
|
||||||
- The kind field. Cannot be modified after created.
|
- The kind field. Cannot be modified after created.
|
||||||
default: ""
|
default: ""
|
||||||
choices: ["", "smart"]
|
choices: ["", "smart"]
|
||||||
version_added: "2.7"
|
version_added: "2.7"
|
||||||
|
type: str
|
||||||
host_filter:
|
host_filter:
|
||||||
description:
|
description:
|
||||||
- The host_filter field. Only useful when C(kind=smart).
|
- The host_filter field. Only useful when C(kind=smart).
|
||||||
version_added: "2.7"
|
version_added: "2.7"
|
||||||
|
type: str
|
||||||
state:
|
state:
|
||||||
description:
|
description:
|
||||||
- Desired state of the resource.
|
- Desired state of the resource.
|
||||||
default: "present"
|
default: "present"
|
||||||
choices: ["present", "absent"]
|
choices: ["present", "absent"]
|
||||||
|
type: str
|
||||||
extends_documentation_fragment: awx.awx.auth
|
extends_documentation_fragment: awx.awx.auth
|
||||||
'''
|
'''
|
||||||
|
|
||||||
|
|||||||
@@ -27,13 +27,16 @@ options:
|
|||||||
description:
|
description:
|
||||||
- The name to use for the inventory source.
|
- The name to use for the inventory source.
|
||||||
required: True
|
required: True
|
||||||
|
type: str
|
||||||
description:
|
description:
|
||||||
description:
|
description:
|
||||||
- The description to use for the inventory source.
|
- The description to use for the inventory source.
|
||||||
|
type: str
|
||||||
inventory:
|
inventory:
|
||||||
description:
|
description:
|
||||||
- The inventory the source is linked to.
|
- The inventory the source is linked to.
|
||||||
required: True
|
required: True
|
||||||
|
type: str
|
||||||
source:
|
source:
|
||||||
description:
|
description:
|
||||||
- Types of inventory source.
|
- Types of inventory source.
|
||||||
@@ -52,9 +55,11 @@ options:
|
|||||||
- tower
|
- tower
|
||||||
- custom
|
- custom
|
||||||
required: True
|
required: True
|
||||||
|
type: str
|
||||||
credential:
|
credential:
|
||||||
description:
|
description:
|
||||||
- Credential to use to retrieve the inventory from.
|
- Credential to use to retrieve the inventory from.
|
||||||
|
type: str
|
||||||
source_vars:
|
source_vars:
|
||||||
description:
|
description:
|
||||||
- >-
|
- >-
|
||||||
@@ -62,15 +67,19 @@ options:
|
|||||||
file. For example with Openstack, specifying *private: false* would
|
file. For example with Openstack, specifying *private: false* would
|
||||||
change the output of the openstack.py script. It has to be YAML or
|
change the output of the openstack.py script. It has to be YAML or
|
||||||
JSON.
|
JSON.
|
||||||
|
type: str
|
||||||
timeout:
|
timeout:
|
||||||
description:
|
description:
|
||||||
- Number in seconds after which the Tower API methods will time out.
|
- Number in seconds after which the Tower API methods will time out.
|
||||||
|
type: int
|
||||||
source_project:
|
source_project:
|
||||||
description:
|
description:
|
||||||
- Use a *project* as a source for the *inventory*.
|
- Use a *project* as a source for the *inventory*.
|
||||||
|
type: str
|
||||||
source_path:
|
source_path:
|
||||||
description:
|
description:
|
||||||
- Path to the file to use as a source in the selected *project*.
|
- Path to the file to use as a source in the selected *project*.
|
||||||
|
type: str
|
||||||
update_on_project_update:
|
update_on_project_update:
|
||||||
description:
|
description:
|
||||||
- >-
|
- >-
|
||||||
@@ -83,23 +92,27 @@ options:
|
|||||||
List of regions for your cloud provider. You can include multiple all
|
List of regions for your cloud provider. You can include multiple all
|
||||||
regions. Only Hosts associated with the selected regions will be
|
regions. Only Hosts associated with the selected regions will be
|
||||||
updated. Refer to Ansible Tower documentation for more detail.
|
updated. Refer to Ansible Tower documentation for more detail.
|
||||||
|
type: str
|
||||||
instance_filters:
|
instance_filters:
|
||||||
description:
|
description:
|
||||||
- >-
|
- >-
|
||||||
Provide a comma-separated list of filter expressions. Hosts are
|
Provide a comma-separated list of filter expressions. Hosts are
|
||||||
imported when all of the filters match. Refer to Ansible Tower
|
imported when all of the filters match. Refer to Ansible Tower
|
||||||
documentation for more detail.
|
documentation for more detail.
|
||||||
|
type: str
|
||||||
group_by:
|
group_by:
|
||||||
description:
|
description:
|
||||||
- >-
|
- >-
|
||||||
Specify which groups to create automatically. Group names will be
|
Specify which groups to create automatically. Group names will be
|
||||||
created similar to the options selected. If blank, all groups above
|
created similar to the options selected. If blank, all groups above
|
||||||
are created. Refer to Ansible Tower documentation for more detail.
|
are created. Refer to Ansible Tower documentation for more detail.
|
||||||
|
type: str
|
||||||
source_script:
|
source_script:
|
||||||
description:
|
description:
|
||||||
- >-
|
- >-
|
||||||
The source custom script to use to build the inventory. It needs to
|
The source custom script to use to build the inventory. It needs to
|
||||||
exist.
|
exist.
|
||||||
|
type: str
|
||||||
overwrite:
|
overwrite:
|
||||||
description:
|
description:
|
||||||
- >-
|
- >-
|
||||||
@@ -133,16 +146,13 @@ options:
|
|||||||
job runs and callbacks the task system will evaluate the timestamp of
|
job runs and callbacks the task system will evaluate the timestamp of
|
||||||
the latest sync. If it is older than Cache Timeout, it is not
|
the latest sync. If it is older than Cache Timeout, it is not
|
||||||
considered current, and a new inventory sync will be performed.
|
considered current, and a new inventory sync will be performed.
|
||||||
|
type: int
|
||||||
state:
|
state:
|
||||||
description:
|
description:
|
||||||
- Desired state of the resource.
|
- Desired state of the resource.
|
||||||
default: "present"
|
default: "present"
|
||||||
choices: ["present", "absent"]
|
choices: ["present", "absent"]
|
||||||
validate_certs:
|
type: str
|
||||||
description:
|
|
||||||
- Tower option to avoid certificates check.
|
|
||||||
type: bool
|
|
||||||
aliases: [ tower_verify_ssl ]
|
|
||||||
extends_documentation_fragment: awx.awx.auth
|
extends_documentation_fragment: awx.awx.auth
|
||||||
'''
|
'''
|
||||||
|
|
||||||
|
|||||||
@@ -27,6 +27,7 @@ options:
|
|||||||
description:
|
description:
|
||||||
- ID of the job to cancel
|
- ID of the job to cancel
|
||||||
required: True
|
required: True
|
||||||
|
type: int
|
||||||
fail_if_not_running:
|
fail_if_not_running:
|
||||||
description:
|
description:
|
||||||
- Fail loudly if the I(job_id) does not reference a running job.
|
- Fail loudly if the I(job_id) does not reference a running job.
|
||||||
|
|||||||
@@ -27,33 +27,32 @@ options:
|
|||||||
description:
|
description:
|
||||||
- Name of the job template to use.
|
- Name of the job template to use.
|
||||||
required: True
|
required: True
|
||||||
job_explanation:
|
type: str
|
||||||
description:
|
|
||||||
- Job explanation field.
|
|
||||||
job_type:
|
job_type:
|
||||||
description:
|
description:
|
||||||
- Job_type to use for the job, only used if prompt for job_type is set.
|
- Job_type to use for the job, only used if prompt for job_type is set.
|
||||||
choices: ["run", "check", "scan"]
|
choices: ["run", "check", "scan"]
|
||||||
|
type: str
|
||||||
inventory:
|
inventory:
|
||||||
description:
|
description:
|
||||||
- Inventory to use for the job, only used if prompt for inventory is set.
|
- Inventory to use for the job, only used if prompt for inventory is set.
|
||||||
|
type: str
|
||||||
credential:
|
credential:
|
||||||
description:
|
description:
|
||||||
- Credential to use for job, only used if prompt for credential is set.
|
- Credential to use for job, only used if prompt for credential is set.
|
||||||
|
type: str
|
||||||
extra_vars:
|
extra_vars:
|
||||||
description:
|
description:
|
||||||
- Extra_vars to use for the job_template. Prepend C(@) if a file.
|
- Extra_vars to use for the job_template. Prepend C(@) if a file.
|
||||||
|
type: list
|
||||||
limit:
|
limit:
|
||||||
description:
|
description:
|
||||||
- Limit to use for the I(job_template).
|
- Limit to use for the I(job_template).
|
||||||
|
type: str
|
||||||
tags:
|
tags:
|
||||||
description:
|
description:
|
||||||
- Specific tags to use for from playbook.
|
- Specific tags to use for from playbook.
|
||||||
use_job_endpoint:
|
type: list
|
||||||
description:
|
|
||||||
- Disable launching jobs from job template.
|
|
||||||
type: bool
|
|
||||||
default: 'no'
|
|
||||||
extends_documentation_fragment: awx.awx.auth
|
extends_documentation_fragment: awx.awx.auth
|
||||||
'''
|
'''
|
||||||
|
|
||||||
|
|||||||
@@ -27,9 +27,11 @@ options:
|
|||||||
description:
|
description:
|
||||||
- Only list jobs with this status.
|
- Only list jobs with this status.
|
||||||
choices: ['pending', 'waiting', 'running', 'error', 'failed', 'canceled', 'successful']
|
choices: ['pending', 'waiting', 'running', 'error', 'failed', 'canceled', 'successful']
|
||||||
|
type: str
|
||||||
page:
|
page:
|
||||||
description:
|
description:
|
||||||
- Page number of the results to fetch.
|
- Page number of the results to fetch.
|
||||||
|
type: int
|
||||||
all_pages:
|
all_pages:
|
||||||
description:
|
description:
|
||||||
- Fetch all the pages and return a single result.
|
- Fetch all the pages and return a single result.
|
||||||
@@ -38,6 +40,7 @@ options:
|
|||||||
query:
|
query:
|
||||||
description:
|
description:
|
||||||
- Query used to further filter the list of jobs. C({"foo":"bar"}) will be passed at C(?foo=bar)
|
- Query used to further filter the list of jobs. C({"foo":"bar"}) will be passed at C(?foo=bar)
|
||||||
|
type: dict
|
||||||
extends_documentation_fragment: awx.awx.auth
|
extends_documentation_fragment: awx.awx.auth
|
||||||
'''
|
'''
|
||||||
|
|
||||||
|
|||||||
@@ -27,50 +27,63 @@ options:
|
|||||||
description:
|
description:
|
||||||
- Name to use for the job template.
|
- Name to use for the job template.
|
||||||
required: True
|
required: True
|
||||||
|
type: str
|
||||||
description:
|
description:
|
||||||
description:
|
description:
|
||||||
- Description to use for the job template.
|
- Description to use for the job template.
|
||||||
|
type: str
|
||||||
job_type:
|
job_type:
|
||||||
description:
|
description:
|
||||||
- The job type to use for the job template.
|
- The job type to use for the job template.
|
||||||
required: True
|
required: True
|
||||||
choices: ["run", "check", "scan"]
|
choices: ["run", "check", "scan"]
|
||||||
|
type: str
|
||||||
inventory:
|
inventory:
|
||||||
description:
|
description:
|
||||||
- Name of the inventory to use for the job template.
|
- Name of the inventory to use for the job template.
|
||||||
|
type: str
|
||||||
project:
|
project:
|
||||||
description:
|
description:
|
||||||
- Name of the project to use for the job template.
|
- Name of the project to use for the job template.
|
||||||
required: True
|
required: True
|
||||||
|
type: str
|
||||||
playbook:
|
playbook:
|
||||||
description:
|
description:
|
||||||
- Path to the playbook to use for the job template within the project provided.
|
- Path to the playbook to use for the job template within the project provided.
|
||||||
required: True
|
required: True
|
||||||
|
type: str
|
||||||
credential:
|
credential:
|
||||||
description:
|
description:
|
||||||
- Name of the credential to use for the job template.
|
- Name of the credential to use for the job template.
|
||||||
version_added: 2.7
|
version_added: 2.7
|
||||||
|
type: str
|
||||||
vault_credential:
|
vault_credential:
|
||||||
description:
|
description:
|
||||||
- Name of the vault credential to use for the job template.
|
- Name of the vault credential to use for the job template.
|
||||||
version_added: 2.7
|
version_added: 2.7
|
||||||
|
type: str
|
||||||
forks:
|
forks:
|
||||||
description:
|
description:
|
||||||
- The number of parallel or simultaneous processes to use while executing the playbook.
|
- The number of parallel or simultaneous processes to use while executing the playbook.
|
||||||
|
type: int
|
||||||
limit:
|
limit:
|
||||||
description:
|
description:
|
||||||
- A host pattern to further constrain the list of hosts managed or affected by the playbook
|
- A host pattern to further constrain the list of hosts managed or affected by the playbook
|
||||||
|
type: str
|
||||||
verbosity:
|
verbosity:
|
||||||
description:
|
description:
|
||||||
- Control the output level Ansible produces as the playbook runs. 0 - Normal, 1 - Verbose, 2 - More Verbose, 3 - Debug, 4 - Connection Debug.
|
- Control the output level Ansible produces as the playbook runs. 0 - Normal, 1 - Verbose, 2 - More Verbose, 3 - Debug, 4 - Connection Debug.
|
||||||
choices: [0, 1, 2, 3, 4]
|
choices: [0, 1, 2, 3, 4]
|
||||||
default: 0
|
default: 0
|
||||||
|
type: int
|
||||||
extra_vars_path:
|
extra_vars_path:
|
||||||
description:
|
description:
|
||||||
- Path to the C(extra_vars) YAML file.
|
- Path to the C(extra_vars) YAML file.
|
||||||
|
type: path
|
||||||
job_tags:
|
job_tags:
|
||||||
description:
|
description:
|
||||||
- Comma separated list of the tags to use for the job template.
|
- Comma separated list of the tags to use for the job template.
|
||||||
|
type: str
|
||||||
force_handlers_enabled:
|
force_handlers_enabled:
|
||||||
description:
|
description:
|
||||||
- Enable forcing playbook handlers to run even if a task fails.
|
- Enable forcing playbook handlers to run even if a task fails.
|
||||||
@@ -80,10 +93,12 @@ options:
|
|||||||
skip_tags:
|
skip_tags:
|
||||||
description:
|
description:
|
||||||
- Comma separated list of the tags to skip for the job template.
|
- Comma separated list of the tags to skip for the job template.
|
||||||
|
type: str
|
||||||
start_at_task:
|
start_at_task:
|
||||||
description:
|
description:
|
||||||
- Start the playbook at the task matching this name.
|
- Start the playbook at the task matching this name.
|
||||||
version_added: 2.7
|
version_added: 2.7
|
||||||
|
type: str
|
||||||
diff_mode_enabled:
|
diff_mode_enabled:
|
||||||
description:
|
description:
|
||||||
- Enable diff mode for the job template.
|
- Enable diff mode for the job template.
|
||||||
@@ -99,6 +114,7 @@ options:
|
|||||||
host_config_key:
|
host_config_key:
|
||||||
description:
|
description:
|
||||||
- Allow provisioning callbacks using this host config key.
|
- Allow provisioning callbacks using this host config key.
|
||||||
|
type: str
|
||||||
ask_diff_mode:
|
ask_diff_mode:
|
||||||
description:
|
description:
|
||||||
- Prompt user to enable diff mode (show changes) to files when supported by modules.
|
- Prompt user to enable diff mode (show changes) to files when supported by modules.
|
||||||
@@ -171,11 +187,16 @@ options:
|
|||||||
version_added: 2.7
|
version_added: 2.7
|
||||||
type: bool
|
type: bool
|
||||||
default: 'no'
|
default: 'no'
|
||||||
|
timeout:
|
||||||
|
description:
|
||||||
|
- Maximum time in seconds to wait for a job to finish (server-side).
|
||||||
|
type: int
|
||||||
state:
|
state:
|
||||||
description:
|
description:
|
||||||
- Desired state of the resource.
|
- Desired state of the resource.
|
||||||
default: "present"
|
default: "present"
|
||||||
choices: ["present", "absent"]
|
choices: ["present", "absent"]
|
||||||
|
type: str
|
||||||
extends_documentation_fragment: awx.awx.auth
|
extends_documentation_fragment: awx.awx.auth
|
||||||
notes:
|
notes:
|
||||||
- JSON for survey_spec can be found in Tower API Documentation. See
|
- JSON for survey_spec can be found in Tower API Documentation. See
|
||||||
|
|||||||
@@ -27,17 +27,21 @@ options:
|
|||||||
description:
|
description:
|
||||||
- ID of the job to monitor.
|
- ID of the job to monitor.
|
||||||
required: True
|
required: True
|
||||||
|
type: int
|
||||||
min_interval:
|
min_interval:
|
||||||
description:
|
description:
|
||||||
- Minimum interval in seconds, to request an update from Tower.
|
- Minimum interval in seconds, to request an update from Tower.
|
||||||
default: 1
|
default: 1
|
||||||
|
type: float
|
||||||
max_interval:
|
max_interval:
|
||||||
description:
|
description:
|
||||||
- Maximum interval in seconds, to request an update from Tower.
|
- Maximum interval in seconds, to request an update from Tower.
|
||||||
default: 30
|
default: 30
|
||||||
|
type: float
|
||||||
timeout:
|
timeout:
|
||||||
description:
|
description:
|
||||||
- Maximum time in seconds to wait for a job to finish.
|
- Maximum time in seconds to wait for a job to finish.
|
||||||
|
type: int
|
||||||
extends_documentation_fragment: awx.awx.auth
|
extends_documentation_fragment: awx.awx.auth
|
||||||
'''
|
'''
|
||||||
|
|
||||||
|
|||||||
@@ -27,15 +27,18 @@ options:
|
|||||||
description:
|
description:
|
||||||
- Name to use for the label.
|
- Name to use for the label.
|
||||||
required: True
|
required: True
|
||||||
|
type: str
|
||||||
organization:
|
organization:
|
||||||
description:
|
description:
|
||||||
- Organization the label should be applied to.
|
- Organization the label should be applied to.
|
||||||
required: True
|
required: True
|
||||||
|
type: str
|
||||||
state:
|
state:
|
||||||
description:
|
description:
|
||||||
- Desired state of the resource.
|
- Desired state of the resource.
|
||||||
default: "present"
|
default: "present"
|
||||||
choices: ["present", "absent"]
|
choices: ["present", "absent"]
|
||||||
|
type: str
|
||||||
extends_documentation_fragment: awx.awx.auth
|
extends_documentation_fragment: awx.awx.auth
|
||||||
'''
|
'''
|
||||||
|
|
||||||
|
|||||||
@@ -27,35 +27,43 @@ options:
|
|||||||
description:
|
description:
|
||||||
- The name of the notification.
|
- The name of the notification.
|
||||||
required: True
|
required: True
|
||||||
|
type: str
|
||||||
description:
|
description:
|
||||||
description:
|
description:
|
||||||
- The description of the notification.
|
- The description of the notification.
|
||||||
required: False
|
required: False
|
||||||
|
type: str
|
||||||
organization:
|
organization:
|
||||||
description:
|
description:
|
||||||
- The organization the notification belongs to.
|
- The organization the notification belongs to.
|
||||||
required: False
|
required: False
|
||||||
|
type: str
|
||||||
notification_type:
|
notification_type:
|
||||||
description:
|
description:
|
||||||
- The type of notification to be sent.
|
- The type of notification to be sent.
|
||||||
required: True
|
required: True
|
||||||
choices: ["email", "slack", "twilio", "pagerduty", "hipchat", "webhook", "irc"]
|
choices: ["email", "slack", "twilio", "pagerduty", "hipchat", "webhook", "irc"]
|
||||||
|
type: str
|
||||||
notification_configuration:
|
notification_configuration:
|
||||||
description:
|
description:
|
||||||
- The notification configuration file. Note providing this field would disable all notification-configuration-related fields.
|
- The notification configuration file. Note providing this field would disable all notification-configuration-related fields.
|
||||||
required: False
|
required: False
|
||||||
|
type: str
|
||||||
username:
|
username:
|
||||||
description:
|
description:
|
||||||
- The mail server username. Required if I(notification_type=email).
|
- The mail server username. Required if I(notification_type=email).
|
||||||
required: False
|
required: False
|
||||||
|
type: str
|
||||||
sender:
|
sender:
|
||||||
description:
|
description:
|
||||||
- The sender email address. Required if I(notification_type=email).
|
- The sender email address. Required if I(notification_type=email).
|
||||||
required: False
|
required: False
|
||||||
|
type: str
|
||||||
recipients:
|
recipients:
|
||||||
description:
|
description:
|
||||||
- The recipients email addresses. Required if I(notification_type=email).
|
- The recipients email addresses. Required if I(notification_type=email).
|
||||||
required: False
|
required: False
|
||||||
|
type: list
|
||||||
use_tls:
|
use_tls:
|
||||||
description:
|
description:
|
||||||
- The TLS trigger. Required if I(notification_type=email).
|
- The TLS trigger. Required if I(notification_type=email).
|
||||||
@@ -65,6 +73,7 @@ options:
|
|||||||
description:
|
description:
|
||||||
- The mail server host. Required if I(notification_type=email).
|
- The mail server host. Required if I(notification_type=email).
|
||||||
required: False
|
required: False
|
||||||
|
type: str
|
||||||
use_ssl:
|
use_ssl:
|
||||||
description:
|
description:
|
||||||
- The SSL trigger. Required if I(notification_type=email) or if I(notification_type=irc).
|
- The SSL trigger. Required if I(notification_type=email) or if I(notification_type=irc).
|
||||||
@@ -74,10 +83,12 @@ options:
|
|||||||
description:
|
description:
|
||||||
- The mail server password. Required if I(notification_type=email) or if I(notification_type=irc).
|
- The mail server password. Required if I(notification_type=email) or if I(notification_type=irc).
|
||||||
required: False
|
required: False
|
||||||
|
type: str
|
||||||
port:
|
port:
|
||||||
description:
|
description:
|
||||||
- The mail server port. Required if I(notification_type=email) or if I(notification_type=irc).
|
- The mail server port. Required if I(notification_type=email) or if I(notification_type=irc).
|
||||||
required: False
|
required: False
|
||||||
|
type: int
|
||||||
channels:
|
channels:
|
||||||
description:
|
description:
|
||||||
- The destination Slack channels. Required if I(notification_type=slack).
|
- The destination Slack channels. Required if I(notification_type=slack).
|
||||||
@@ -87,47 +98,58 @@ options:
|
|||||||
description:
|
description:
|
||||||
- The access token. Required if I(notification_type=slack), if I(notification_type=pagerduty) or if I(notification_type=hipchat).
|
- The access token. Required if I(notification_type=slack), if I(notification_type=pagerduty) or if I(notification_type=hipchat).
|
||||||
required: False
|
required: False
|
||||||
|
type: str
|
||||||
account_token:
|
account_token:
|
||||||
description:
|
description:
|
||||||
- The Twillio account token. Required if I(notification_type=twillio).
|
- The Twillio account token. Required if I(notification_type=twillio).
|
||||||
required: False
|
required: False
|
||||||
|
type: str
|
||||||
from_number:
|
from_number:
|
||||||
description:
|
description:
|
||||||
- The source phone number. Required if I(notification_type=twillio).
|
- The source phone number. Required if I(notification_type=twillio).
|
||||||
required: False
|
required: False
|
||||||
|
type: str
|
||||||
to_numbers:
|
to_numbers:
|
||||||
description:
|
description:
|
||||||
- The destination phone numbers. Required if I(notification_type=twillio).
|
- The destination phone numbers. Required if I(notification_type=twillio).
|
||||||
required: False
|
required: False
|
||||||
|
type: list
|
||||||
account_sid:
|
account_sid:
|
||||||
description:
|
description:
|
||||||
- The Twillio account SID. Required if I(notification_type=twillio).
|
- The Twillio account SID. Required if I(notification_type=twillio).
|
||||||
required: False
|
required: False
|
||||||
|
type: str
|
||||||
subdomain:
|
subdomain:
|
||||||
description:
|
description:
|
||||||
- The PagerDuty subdomain. Required if I(notification_type=pagerduty).
|
- The PagerDuty subdomain. Required if I(notification_type=pagerduty).
|
||||||
required: False
|
required: False
|
||||||
|
type: str
|
||||||
service_key:
|
service_key:
|
||||||
description:
|
description:
|
||||||
- The PagerDuty service/integration API key. Required if I(notification_type=pagerduty).
|
- The PagerDuty service/integration API key. Required if I(notification_type=pagerduty).
|
||||||
required: False
|
required: False
|
||||||
|
type: str
|
||||||
client_name:
|
client_name:
|
||||||
description:
|
description:
|
||||||
- The PagerDuty client identifier. Required if I(notification_type=pagerduty).
|
- The PagerDuty client identifier. Required if I(notification_type=pagerduty).
|
||||||
required: False
|
required: False
|
||||||
|
type: str
|
||||||
message_from:
|
message_from:
|
||||||
description:
|
description:
|
||||||
- The label to be shown with the notification. Required if I(notification_type=hipchat).
|
- The label to be shown with the notification. Required if I(notification_type=hipchat).
|
||||||
required: False
|
required: False
|
||||||
|
type: str
|
||||||
api_url:
|
api_url:
|
||||||
description:
|
description:
|
||||||
- The HipChat API URL. Required if I(notification_type=hipchat).
|
- The HipChat API URL. Required if I(notification_type=hipchat).
|
||||||
required: False
|
required: False
|
||||||
|
type: str
|
||||||
color:
|
color:
|
||||||
description:
|
description:
|
||||||
- The notification color. Required if I(notification_type=hipchat).
|
- The notification color. Required if I(notification_type=hipchat).
|
||||||
required: False
|
required: False
|
||||||
choices: ["yellow", "green", "red", "purple", "gray", "random"]
|
choices: ["yellow", "green", "red", "purple", "gray", "random"]
|
||||||
|
type: str
|
||||||
rooms:
|
rooms:
|
||||||
description:
|
description:
|
||||||
- HipChat rooms to send the notification to. Required if I(notification_type=hipchat).
|
- HipChat rooms to send the notification to. Required if I(notification_type=hipchat).
|
||||||
@@ -142,18 +164,22 @@ options:
|
|||||||
description:
|
description:
|
||||||
- The target URL. Required if I(notification_type=webhook).
|
- The target URL. Required if I(notification_type=webhook).
|
||||||
required: False
|
required: False
|
||||||
|
type: str
|
||||||
headers:
|
headers:
|
||||||
description:
|
description:
|
||||||
- The HTTP headers as JSON string. Required if I(notification_type=webhook).
|
- The HTTP headers as JSON string. Required if I(notification_type=webhook).
|
||||||
required: False
|
required: False
|
||||||
|
type: dict
|
||||||
server:
|
server:
|
||||||
description:
|
description:
|
||||||
- The IRC server address. Required if I(notification_type=irc).
|
- The IRC server address. Required if I(notification_type=irc).
|
||||||
required: False
|
required: False
|
||||||
|
type: str
|
||||||
nickname:
|
nickname:
|
||||||
description:
|
description:
|
||||||
- The IRC nickname. Required if I(notification_type=irc).
|
- The IRC nickname. Required if I(notification_type=irc).
|
||||||
required: False
|
required: False
|
||||||
|
type: str
|
||||||
targets:
|
targets:
|
||||||
description:
|
description:
|
||||||
- The destination channels or users. Required if I(notification_type=irc).
|
- The destination channels or users. Required if I(notification_type=irc).
|
||||||
@@ -164,6 +190,7 @@ options:
|
|||||||
- Desired state of the resource.
|
- Desired state of the resource.
|
||||||
default: "present"
|
default: "present"
|
||||||
choices: ["present", "absent"]
|
choices: ["present", "absent"]
|
||||||
|
type: str
|
||||||
extends_documentation_fragment: awx.awx.auth
|
extends_documentation_fragment: awx.awx.auth
|
||||||
'''
|
'''
|
||||||
|
|
||||||
|
|||||||
@@ -27,14 +27,17 @@ options:
|
|||||||
description:
|
description:
|
||||||
- Name to use for the organization.
|
- Name to use for the organization.
|
||||||
required: True
|
required: True
|
||||||
|
type: str
|
||||||
description:
|
description:
|
||||||
description:
|
description:
|
||||||
- The description to use for the organization.
|
- The description to use for the organization.
|
||||||
|
type: str
|
||||||
state:
|
state:
|
||||||
description:
|
description:
|
||||||
- Desired state of the resource.
|
- Desired state of the resource.
|
||||||
default: "present"
|
default: "present"
|
||||||
choices: ["present", "absent"]
|
choices: ["present", "absent"]
|
||||||
|
type: str
|
||||||
extends_documentation_fragment: awx.awx.auth
|
extends_documentation_fragment: awx.awx.auth
|
||||||
'''
|
'''
|
||||||
|
|
||||||
|
|||||||
@@ -27,26 +27,33 @@ options:
|
|||||||
description:
|
description:
|
||||||
- Name to use for the project.
|
- Name to use for the project.
|
||||||
required: True
|
required: True
|
||||||
|
type: str
|
||||||
description:
|
description:
|
||||||
description:
|
description:
|
||||||
- Description to use for the project.
|
- Description to use for the project.
|
||||||
|
type: str
|
||||||
scm_type:
|
scm_type:
|
||||||
description:
|
description:
|
||||||
- Type of SCM resource.
|
- Type of SCM resource.
|
||||||
choices: ["manual", "git", "hg", "svn"]
|
choices: ["manual", "git", "hg", "svn"]
|
||||||
default: "manual"
|
default: "manual"
|
||||||
|
type: str
|
||||||
scm_url:
|
scm_url:
|
||||||
description:
|
description:
|
||||||
- URL of SCM resource.
|
- URL of SCM resource.
|
||||||
|
type: str
|
||||||
local_path:
|
local_path:
|
||||||
description:
|
description:
|
||||||
- The server playbook directory for manual projects.
|
- The server playbook directory for manual projects.
|
||||||
|
type: str
|
||||||
scm_branch:
|
scm_branch:
|
||||||
description:
|
description:
|
||||||
- The branch to use for the SCM resource.
|
- The branch to use for the SCM resource.
|
||||||
|
type: str
|
||||||
scm_credential:
|
scm_credential:
|
||||||
description:
|
description:
|
||||||
- Name of the credential to use with this SCM resource.
|
- Name of the credential to use with this SCM resource.
|
||||||
|
type: str
|
||||||
scm_clean:
|
scm_clean:
|
||||||
description:
|
description:
|
||||||
- Remove local modifications before updating.
|
- Remove local modifications before updating.
|
||||||
@@ -68,23 +75,28 @@ options:
|
|||||||
- Cache Timeout to cache prior project syncs for a certain number of seconds.
|
- Cache Timeout to cache prior project syncs for a certain number of seconds.
|
||||||
Only valid if scm_update_on_launch is to True, otherwise ignored.
|
Only valid if scm_update_on_launch is to True, otherwise ignored.
|
||||||
default: 0
|
default: 0
|
||||||
|
type: int
|
||||||
job_timeout:
|
job_timeout:
|
||||||
version_added: "2.8"
|
version_added: "2.8"
|
||||||
description:
|
description:
|
||||||
- The amount of time (in seconds) to run before the SCM Update is canceled. A value of 0 means no timeout.
|
- The amount of time (in seconds) to run before the SCM Update is canceled. A value of 0 means no timeout.
|
||||||
default: 0
|
default: 0
|
||||||
|
type: int
|
||||||
custom_virtualenv:
|
custom_virtualenv:
|
||||||
version_added: "2.8"
|
version_added: "2.8"
|
||||||
description:
|
description:
|
||||||
- Local absolute file path containing a custom Python virtualenv to use
|
- Local absolute file path containing a custom Python virtualenv to use
|
||||||
|
type: str
|
||||||
organization:
|
organization:
|
||||||
description:
|
description:
|
||||||
- Primary key of organization for project.
|
- Primary key of organization for project.
|
||||||
|
type: str
|
||||||
state:
|
state:
|
||||||
description:
|
description:
|
||||||
- Desired state of the resource.
|
- Desired state of the resource.
|
||||||
default: "present"
|
default: "present"
|
||||||
choices: ["present", "absent"]
|
choices: ["present", "absent"]
|
||||||
|
type: str
|
||||||
extends_documentation_fragment: awx.awx.auth
|
extends_documentation_fragment: awx.awx.auth
|
||||||
'''
|
'''
|
||||||
|
|
||||||
|
|||||||
@@ -32,46 +32,57 @@ options:
|
|||||||
description:
|
description:
|
||||||
- List of organization names to export
|
- List of organization names to export
|
||||||
default: []
|
default: []
|
||||||
|
type: list
|
||||||
user:
|
user:
|
||||||
description:
|
description:
|
||||||
- List of user names to export
|
- List of user names to export
|
||||||
default: []
|
default: []
|
||||||
|
type: list
|
||||||
team:
|
team:
|
||||||
description:
|
description:
|
||||||
- List of team names to export
|
- List of team names to export
|
||||||
default: []
|
default: []
|
||||||
|
type: list
|
||||||
credential_type:
|
credential_type:
|
||||||
description:
|
description:
|
||||||
- List of credential type names to export
|
- List of credential type names to export
|
||||||
default: []
|
default: []
|
||||||
|
type: list
|
||||||
credential:
|
credential:
|
||||||
description:
|
description:
|
||||||
- List of credential names to export
|
- List of credential names to export
|
||||||
default: []
|
default: []
|
||||||
|
type: list
|
||||||
notification_template:
|
notification_template:
|
||||||
description:
|
description:
|
||||||
- List of notification template names to export
|
- List of notification template names to export
|
||||||
default: []
|
default: []
|
||||||
|
type: list
|
||||||
inventory_script:
|
inventory_script:
|
||||||
description:
|
description:
|
||||||
- List of inventory script names to export
|
- List of inventory script names to export
|
||||||
default: []
|
default: []
|
||||||
|
type: list
|
||||||
inventory:
|
inventory:
|
||||||
description:
|
description:
|
||||||
- List of inventory names to export
|
- List of inventory names to export
|
||||||
default: []
|
default: []
|
||||||
|
type: list
|
||||||
project:
|
project:
|
||||||
description:
|
description:
|
||||||
- List of project names to export
|
- List of project names to export
|
||||||
default: []
|
default: []
|
||||||
|
type: list
|
||||||
job_template:
|
job_template:
|
||||||
description:
|
description:
|
||||||
- List of job template names to export
|
- List of job template names to export
|
||||||
default: []
|
default: []
|
||||||
|
type: list
|
||||||
workflow:
|
workflow:
|
||||||
description:
|
description:
|
||||||
- List of workflow names to export
|
- List of workflow names to export
|
||||||
default: []
|
default: []
|
||||||
|
type: list
|
||||||
|
|
||||||
requirements:
|
requirements:
|
||||||
- "ansible-tower-cli >= 3.3.0"
|
- "ansible-tower-cli >= 3.3.0"
|
||||||
|
|||||||
@@ -26,38 +26,48 @@ options:
|
|||||||
user:
|
user:
|
||||||
description:
|
description:
|
||||||
- User that receives the permissions specified by the role.
|
- User that receives the permissions specified by the role.
|
||||||
|
type: str
|
||||||
team:
|
team:
|
||||||
description:
|
description:
|
||||||
- Team that receives the permissions specified by the role.
|
- Team that receives the permissions specified by the role.
|
||||||
|
type: str
|
||||||
role:
|
role:
|
||||||
description:
|
description:
|
||||||
- The role type to grant/revoke.
|
- The role type to grant/revoke.
|
||||||
required: True
|
required: True
|
||||||
choices: ["admin", "read", "member", "execute", "adhoc", "update", "use", "auditor", "project_admin", "inventory_admin", "credential_admin",
|
choices: ["admin", "read", "member", "execute", "adhoc", "update", "use", "auditor", "project_admin", "inventory_admin", "credential_admin",
|
||||||
"workflow_admin", "notification_admin", "job_template_admin"]
|
"workflow_admin", "notification_admin", "job_template_admin"]
|
||||||
|
type: str
|
||||||
target_team:
|
target_team:
|
||||||
description:
|
description:
|
||||||
- Team that the role acts on.
|
- Team that the role acts on.
|
||||||
|
type: str
|
||||||
inventory:
|
inventory:
|
||||||
description:
|
description:
|
||||||
- Inventory the role acts on.
|
- Inventory the role acts on.
|
||||||
|
type: str
|
||||||
job_template:
|
job_template:
|
||||||
description:
|
description:
|
||||||
- The job template the role acts on.
|
- The job template the role acts on.
|
||||||
|
type: str
|
||||||
credential:
|
credential:
|
||||||
description:
|
description:
|
||||||
- Credential the role acts on.
|
- Credential the role acts on.
|
||||||
|
type: str
|
||||||
organization:
|
organization:
|
||||||
description:
|
description:
|
||||||
- Organization the role acts on.
|
- Organization the role acts on.
|
||||||
|
type: str
|
||||||
project:
|
project:
|
||||||
description:
|
description:
|
||||||
- Project the role acts on.
|
- Project the role acts on.
|
||||||
|
type: str
|
||||||
state:
|
state:
|
||||||
description:
|
description:
|
||||||
- Desired state of the resource.
|
- Desired state of the resource.
|
||||||
default: "present"
|
default: "present"
|
||||||
choices: ["present", "absent"]
|
choices: ["present", "absent"]
|
||||||
|
type: str
|
||||||
extends_documentation_fragment: awx.awx.auth
|
extends_documentation_fragment: awx.awx.auth
|
||||||
'''
|
'''
|
||||||
|
|
||||||
|
|||||||
@@ -28,16 +28,19 @@ options:
|
|||||||
- The assets to import.
|
- The assets to import.
|
||||||
- This can be the output of tower_receive or loaded from a file
|
- This can be the output of tower_receive or loaded from a file
|
||||||
required: False
|
required: False
|
||||||
|
type: str
|
||||||
files:
|
files:
|
||||||
description:
|
description:
|
||||||
- List of files to import.
|
- List of files to import.
|
||||||
required: False
|
required: False
|
||||||
default: []
|
default: []
|
||||||
|
type: list
|
||||||
prevent:
|
prevent:
|
||||||
description:
|
description:
|
||||||
- A list of asset types to prevent import for
|
- A list of asset types to prevent import for
|
||||||
required: false
|
required: false
|
||||||
default: []
|
default: []
|
||||||
|
type: list
|
||||||
password_management:
|
password_management:
|
||||||
description:
|
description:
|
||||||
- The password management option to use.
|
- The password management option to use.
|
||||||
@@ -45,6 +48,7 @@ options:
|
|||||||
required: false
|
required: false
|
||||||
default: 'default'
|
default: 'default'
|
||||||
choices: ["default", "random"]
|
choices: ["default", "random"]
|
||||||
|
type: str
|
||||||
|
|
||||||
notes:
|
notes:
|
||||||
- One of assets or files needs to be passed in
|
- One of assets or files needs to be passed in
|
||||||
|
|||||||
@@ -27,10 +27,12 @@ options:
|
|||||||
description:
|
description:
|
||||||
- Name of setting to modify
|
- Name of setting to modify
|
||||||
required: True
|
required: True
|
||||||
|
type: str
|
||||||
value:
|
value:
|
||||||
description:
|
description:
|
||||||
- Value to be modified for given setting.
|
- Value to be modified for given setting.
|
||||||
required: True
|
required: True
|
||||||
|
type: str
|
||||||
extends_documentation_fragment: awx.awx.auth
|
extends_documentation_fragment: awx.awx.auth
|
||||||
'''
|
'''
|
||||||
|
|
||||||
|
|||||||
@@ -27,15 +27,22 @@ options:
|
|||||||
description:
|
description:
|
||||||
- Name to use for the team.
|
- Name to use for the team.
|
||||||
required: True
|
required: True
|
||||||
|
type: str
|
||||||
|
description:
|
||||||
|
description:
|
||||||
|
- The description to use for the team.
|
||||||
|
type: str
|
||||||
organization:
|
organization:
|
||||||
description:
|
description:
|
||||||
- Organization the team should be made a member of.
|
- Organization the team should be made a member of.
|
||||||
required: True
|
required: True
|
||||||
|
type: str
|
||||||
state:
|
state:
|
||||||
description:
|
description:
|
||||||
- Desired state of the resource.
|
- Desired state of the resource.
|
||||||
choices: ["present", "absent"]
|
choices: ["present", "absent"]
|
||||||
default: "present"
|
default: "present"
|
||||||
|
type: str
|
||||||
extends_documentation_fragment: awx.awx.auth
|
extends_documentation_fragment: awx.awx.auth
|
||||||
'''
|
'''
|
||||||
|
|
||||||
|
|||||||
@@ -27,19 +27,24 @@ options:
|
|||||||
description:
|
description:
|
||||||
- The username of the user.
|
- The username of the user.
|
||||||
required: True
|
required: True
|
||||||
|
type: str
|
||||||
first_name:
|
first_name:
|
||||||
description:
|
description:
|
||||||
- First name of the user.
|
- First name of the user.
|
||||||
|
type: str
|
||||||
last_name:
|
last_name:
|
||||||
description:
|
description:
|
||||||
- Last name of the user.
|
- Last name of the user.
|
||||||
|
type: str
|
||||||
email:
|
email:
|
||||||
description:
|
description:
|
||||||
- Email address of the user.
|
- Email address of the user.
|
||||||
required: True
|
required: True
|
||||||
|
type: str
|
||||||
password:
|
password:
|
||||||
description:
|
description:
|
||||||
- Password of the user.
|
- Password of the user.
|
||||||
|
type: str
|
||||||
superuser:
|
superuser:
|
||||||
description:
|
description:
|
||||||
- User is a system wide administrator.
|
- User is a system wide administrator.
|
||||||
@@ -55,6 +60,7 @@ options:
|
|||||||
- Desired state of the resource.
|
- Desired state of the resource.
|
||||||
default: "present"
|
default: "present"
|
||||||
choices: ["present", "absent"]
|
choices: ["present", "absent"]
|
||||||
|
type: str
|
||||||
|
|
||||||
requirements:
|
requirements:
|
||||||
- ansible-tower-cli >= 3.2.0
|
- ansible-tower-cli >= 3.2.0
|
||||||
|
|||||||
@@ -24,10 +24,12 @@ options:
|
|||||||
description:
|
description:
|
||||||
- The name of the workflow template to run.
|
- The name of the workflow template to run.
|
||||||
required: True
|
required: True
|
||||||
|
type: str
|
||||||
extra_vars:
|
extra_vars:
|
||||||
description:
|
description:
|
||||||
- Any extra vars required to launch the job.
|
- Any extra vars required to launch the job.
|
||||||
required: False
|
required: False
|
||||||
|
type: str
|
||||||
wait:
|
wait:
|
||||||
description:
|
description:
|
||||||
- Wait for the workflow to complete.
|
- Wait for the workflow to complete.
|
||||||
@@ -38,6 +40,7 @@ options:
|
|||||||
description:
|
description:
|
||||||
- If waiting for the workflow to complete this will abort after this
|
- If waiting for the workflow to complete this will abort after this
|
||||||
amount of seconds
|
amount of seconds
|
||||||
|
type: int
|
||||||
|
|
||||||
requirements:
|
requirements:
|
||||||
- "python >= 2.6"
|
- "python >= 2.6"
|
||||||
|
|||||||
@@ -40,26 +40,32 @@ options:
|
|||||||
description:
|
description:
|
||||||
description:
|
description:
|
||||||
- The description to use for the workflow.
|
- The description to use for the workflow.
|
||||||
|
type: str
|
||||||
extra_vars:
|
extra_vars:
|
||||||
description:
|
description:
|
||||||
- Extra variables used by Ansible in YAML or key=value format.
|
- Extra variables used by Ansible in YAML or key=value format.
|
||||||
|
type: str
|
||||||
inventory:
|
inventory:
|
||||||
description:
|
description:
|
||||||
- Name of the inventory to use for the job template.
|
- Name of the inventory to use for the job template.
|
||||||
version_added: "2.9"
|
version_added: "2.9"
|
||||||
|
type: str
|
||||||
name:
|
name:
|
||||||
description:
|
description:
|
||||||
- The name to use for the workflow.
|
- The name to use for the workflow.
|
||||||
required: True
|
required: True
|
||||||
|
type: str
|
||||||
organization:
|
organization:
|
||||||
description:
|
description:
|
||||||
- The organization the workflow is linked to.
|
- The organization the workflow is linked to.
|
||||||
|
type: str
|
||||||
schema:
|
schema:
|
||||||
description:
|
description:
|
||||||
- >
|
- >
|
||||||
The schema is a JSON- or YAML-formatted string defining the
|
The schema is a JSON- or YAML-formatted string defining the
|
||||||
hierarchy structure that connects the nodes. Refer to Tower
|
hierarchy structure that connects the nodes. Refer to Tower
|
||||||
documentation for more information.
|
documentation for more information.
|
||||||
|
type: str
|
||||||
survey_enabled:
|
survey_enabled:
|
||||||
description:
|
description:
|
||||||
- Setting that variable will prompt the user for job type on the
|
- Setting that variable will prompt the user for job type on the
|
||||||
@@ -68,11 +74,13 @@ options:
|
|||||||
survey:
|
survey:
|
||||||
description:
|
description:
|
||||||
- The definition of the survey associated to the workflow.
|
- The definition of the survey associated to the workflow.
|
||||||
|
type: str
|
||||||
state:
|
state:
|
||||||
description:
|
description:
|
||||||
- Desired state of the resource.
|
- Desired state of the resource.
|
||||||
default: "present"
|
default: "present"
|
||||||
choices: ["present", "absent"]
|
choices: ["present", "absent"]
|
||||||
|
type: str
|
||||||
extends_documentation_fragment: awx.awx.auth
|
extends_documentation_fragment: awx.awx.auth
|
||||||
'''
|
'''
|
||||||
|
|
||||||
|
|||||||
44
awx_collection/tests/sanity/ignore-2.10.txt
Normal file
44
awx_collection/tests/sanity/ignore-2.10.txt
Normal file
@@ -0,0 +1,44 @@
|
|||||||
|
plugins/modules/tower_credential_type.py validate-modules:missing-module-utils-import
|
||||||
|
plugins/modules/tower_group.py validate-modules:missing-module-utils-import
|
||||||
|
plugins/modules/tower_host.py validate-modules:missing-module-utils-import
|
||||||
|
plugins/modules/tower_inventory.py validate-modules:missing-module-utils-import
|
||||||
|
plugins/modules/tower_inventory_source.py validate-modules:missing-module-utils-import
|
||||||
|
plugins/modules/tower_job_cancel.py validate-modules:missing-module-utils-import
|
||||||
|
plugins/modules/tower_job_launch.py validate-modules:missing-module-utils-import
|
||||||
|
plugins/modules/tower_job_list.py validate-modules:missing-module-utils-import
|
||||||
|
plugins/modules/tower_job_template.py validate-modules:missing-module-utils-import
|
||||||
|
plugins/modules/tower_label.py validate-modules:missing-module-utils-import
|
||||||
|
plugins/modules/tower_notification.py validate-modules:missing-module-utils-import
|
||||||
|
plugins/modules/tower_organization.py validate-modules:missing-module-utils-import
|
||||||
|
plugins/modules/tower_project.py validate-modules:missing-module-utils-import
|
||||||
|
plugins/modules/tower_receive.py validate-modules:missing-module-utils-import
|
||||||
|
plugins/modules/tower_role.py validate-modules:missing-module-utils-import
|
||||||
|
plugins/modules/tower_settings.py validate-modules:missing-module-utils-import
|
||||||
|
plugins/modules/tower_team.py validate-modules:missing-module-utils-import
|
||||||
|
plugins/modules/tower_user.py validate-modules:missing-module-utils-import
|
||||||
|
plugins/modules/tower_workflow_launch.py validate-modules:missing-module-utils-import
|
||||||
|
plugins/modules/tower_workflow_template.py validate-modules:missing-module-utils-import
|
||||||
|
plugins/modules/tower_credential_type.py validate-modules:import-error
|
||||||
|
plugins/modules/tower_credential.py validate-modules:import-error
|
||||||
|
plugins/modules/tower_group.py validate-modules:import-error
|
||||||
|
plugins/modules/tower_host.py validate-modules:import-error
|
||||||
|
plugins/modules/tower_inventory.py validate-modules:import-error
|
||||||
|
plugins/modules/tower_inventory_source.py validate-modules:import-error
|
||||||
|
plugins/modules/tower_job_cancel.py validate-modules:import-error
|
||||||
|
plugins/modules/tower_job_launch.py validate-modules:import-error
|
||||||
|
plugins/modules/tower_job_list.py validate-modules:import-error
|
||||||
|
plugins/modules/tower_job_wait.py validate-modules:import-error
|
||||||
|
plugins/modules/tower_job_template.py validate-modules:import-error
|
||||||
|
plugins/modules/tower_label.py validate-modules:import-error
|
||||||
|
plugins/modules/tower_notification.py validate-modules:import-error
|
||||||
|
plugins/modules/tower_organization.py validate-modules:import-error
|
||||||
|
plugins/modules/tower_project.py validate-modules:import-error
|
||||||
|
plugins/modules/tower_receive.py validate-modules:import-error
|
||||||
|
plugins/modules/tower_role.py validate-modules:import-error
|
||||||
|
plugins/modules/tower_settings.py validate-modules:import-error
|
||||||
|
plugins/modules/tower_send.py validate-modules:import-error
|
||||||
|
plugins/modules/tower_team.py validate-modules:import-error
|
||||||
|
plugins/modules/tower_user.py validate-modules:import-error
|
||||||
|
plugins/modules/tower_workflow_launch.py validate-modules:import-error
|
||||||
|
plugins/modules/tower_workflow_template.py validate-modules:import-error
|
||||||
|
plugins/modules/tower_workflow_job_template.py validate-modules:import-error
|
||||||
44
awx_collection/tests/sanity/ignore-2.9.txt
Normal file
44
awx_collection/tests/sanity/ignore-2.9.txt
Normal file
@@ -0,0 +1,44 @@
|
|||||||
|
plugins/modules/tower_credential_type.py validate-modules:missing-module-utils-import
|
||||||
|
plugins/modules/tower_group.py validate-modules:missing-module-utils-import
|
||||||
|
plugins/modules/tower_host.py validate-modules:missing-module-utils-import
|
||||||
|
plugins/modules/tower_inventory.py validate-modules:missing-module-utils-import
|
||||||
|
plugins/modules/tower_inventory_source.py validate-modules:missing-module-utils-import
|
||||||
|
plugins/modules/tower_job_cancel.py validate-modules:missing-module-utils-import
|
||||||
|
plugins/modules/tower_job_launch.py validate-modules:missing-module-utils-import
|
||||||
|
plugins/modules/tower_job_list.py validate-modules:missing-module-utils-import
|
||||||
|
plugins/modules/tower_job_template.py validate-modules:missing-module-utils-import
|
||||||
|
plugins/modules/tower_label.py validate-modules:missing-module-utils-import
|
||||||
|
plugins/modules/tower_notification.py validate-modules:missing-module-utils-import
|
||||||
|
plugins/modules/tower_organization.py validate-modules:missing-module-utils-import
|
||||||
|
plugins/modules/tower_project.py validate-modules:missing-module-utils-import
|
||||||
|
plugins/modules/tower_receive.py validate-modules:missing-module-utils-import
|
||||||
|
plugins/modules/tower_role.py validate-modules:missing-module-utils-import
|
||||||
|
plugins/modules/tower_settings.py validate-modules:missing-module-utils-import
|
||||||
|
plugins/modules/tower_team.py validate-modules:missing-module-utils-import
|
||||||
|
plugins/modules/tower_user.py validate-modules:missing-module-utils-import
|
||||||
|
plugins/modules/tower_workflow_launch.py validate-modules:missing-module-utils-import
|
||||||
|
plugins/modules/tower_workflow_template.py validate-modules:missing-module-utils-import
|
||||||
|
plugins/modules/tower_credential_type.py validate-modules:import-error
|
||||||
|
plugins/modules/tower_credential.py validate-modules:import-error
|
||||||
|
plugins/modules/tower_group.py validate-modules:import-error
|
||||||
|
plugins/modules/tower_host.py validate-modules:import-error
|
||||||
|
plugins/modules/tower_inventory.py validate-modules:import-error
|
||||||
|
plugins/modules/tower_inventory_source.py validate-modules:import-error
|
||||||
|
plugins/modules/tower_job_cancel.py validate-modules:import-error
|
||||||
|
plugins/modules/tower_job_launch.py validate-modules:import-error
|
||||||
|
plugins/modules/tower_job_list.py validate-modules:import-error
|
||||||
|
plugins/modules/tower_job_wait.py validate-modules:import-error
|
||||||
|
plugins/modules/tower_job_template.py validate-modules:import-error
|
||||||
|
plugins/modules/tower_label.py validate-modules:import-error
|
||||||
|
plugins/modules/tower_notification.py validate-modules:import-error
|
||||||
|
plugins/modules/tower_organization.py validate-modules:import-error
|
||||||
|
plugins/modules/tower_project.py validate-modules:import-error
|
||||||
|
plugins/modules/tower_receive.py validate-modules:import-error
|
||||||
|
plugins/modules/tower_role.py validate-modules:import-error
|
||||||
|
plugins/modules/tower_settings.py validate-modules:import-error
|
||||||
|
plugins/modules/tower_send.py validate-modules:import-error
|
||||||
|
plugins/modules/tower_team.py validate-modules:import-error
|
||||||
|
plugins/modules/tower_user.py validate-modules:import-error
|
||||||
|
plugins/modules/tower_workflow_launch.py validate-modules:import-error
|
||||||
|
plugins/modules/tower_workflow_template.py validate-modules:import-error
|
||||||
|
plugins/modules/tower_workflow_job_template.py validate-modules:import-error
|
||||||
Reference in New Issue
Block a user