mirror of
https://github.com/ansible/awx.git
synced 2026-02-23 05:55:59 -03:30
Comply with updated Ansible sanity test rules
This commit is contained in:
@@ -33,7 +33,6 @@ options:
|
|||||||
- The Tower OAuth token to use.
|
- The Tower OAuth token to use.
|
||||||
- If value not set, will try environment variable C(TOWER_OAUTH_TOKEN) and then config files
|
- If value not set, will try environment variable C(TOWER_OAUTH_TOKEN) and then config files
|
||||||
type: str
|
type: str
|
||||||
version_added: "3.7"
|
|
||||||
validate_certs:
|
validate_certs:
|
||||||
description:
|
description:
|
||||||
- Whether to allow insecure connections to Tower or AWX.
|
- Whether to allow insecure connections to Tower or AWX.
|
||||||
|
|||||||
@@ -12,7 +12,6 @@ DOCUMENTATION = '''
|
|||||||
- Matthew Jones (@matburt)
|
- Matthew Jones (@matburt)
|
||||||
- Yunfan Zhang (@YunfanZhang42)
|
- Yunfan Zhang (@YunfanZhang42)
|
||||||
short_description: Ansible dynamic inventory plugin for Ansible Tower.
|
short_description: Ansible dynamic inventory plugin for Ansible Tower.
|
||||||
version_added: "2.7"
|
|
||||||
description:
|
description:
|
||||||
- Reads inventories from Ansible Tower.
|
- Reads inventories from Ansible Tower.
|
||||||
- Supports reading configuration from both YAML config file and environment variables.
|
- Supports reading configuration from both YAML config file and environment variables.
|
||||||
@@ -68,7 +67,6 @@ DOCUMENTATION = '''
|
|||||||
description: Make extra requests to provide all group vars with metadata about the source Ansible Tower host.
|
description: Make extra requests to provide all group vars with metadata about the source Ansible Tower host.
|
||||||
type: bool
|
type: bool
|
||||||
default: False
|
default: False
|
||||||
version_added: "2.8"
|
|
||||||
'''
|
'''
|
||||||
|
|
||||||
EXAMPLES = '''
|
EXAMPLES = '''
|
||||||
|
|||||||
@@ -6,7 +6,6 @@ __metaclass__ = type
|
|||||||
DOCUMENTATION = """
|
DOCUMENTATION = """
|
||||||
lookup: tower_schedule_rrule
|
lookup: tower_schedule_rrule
|
||||||
author: John Westcott IV (@john-westcott-iv)
|
author: John Westcott IV (@john-westcott-iv)
|
||||||
version_added: "3.7"
|
|
||||||
short_description: Generate an rrule string which can be used for Tower Schedules
|
short_description: Generate an rrule string which can be used for Tower Schedules
|
||||||
requirements:
|
requirements:
|
||||||
- pytz
|
- pytz
|
||||||
|
|||||||
@@ -17,7 +17,6 @@ DOCUMENTATION = '''
|
|||||||
---
|
---
|
||||||
module: tower_credential
|
module: tower_credential
|
||||||
author: "Wayne Witzel III (@wwitzel3)"
|
author: "Wayne Witzel III (@wwitzel3)"
|
||||||
version_added: "2.3"
|
|
||||||
short_description: create, update, or destroy Ansible Tower credential.
|
short_description: create, update, or destroy Ansible Tower credential.
|
||||||
description:
|
description:
|
||||||
- Create, update, or destroy Ansible Tower credentials. See
|
- Create, update, or destroy Ansible Tower credentials. See
|
||||||
@@ -45,7 +44,6 @@ options:
|
|||||||
description:
|
description:
|
||||||
- Name of credential type.
|
- Name of credential type.
|
||||||
- Will be preferred over kind
|
- Will be preferred over kind
|
||||||
version_added: "2.10"
|
|
||||||
type: str
|
type: str
|
||||||
inputs:
|
inputs:
|
||||||
description:
|
description:
|
||||||
@@ -53,7 +51,6 @@ options:
|
|||||||
Credential inputs where the keys are var names used in templating.
|
Credential inputs where the keys are var names used in templating.
|
||||||
Refer to the Ansible Tower documentation for example syntax.
|
Refer to the Ansible Tower documentation for example syntax.
|
||||||
- Any fields in this dict will take prescedence over any fields mentioned below (i.e. host, username, etc)
|
- Any fields in this dict will take prescedence over any fields mentioned below (i.e. host, username, etc)
|
||||||
version_added: "2.9"
|
|
||||||
type: dict
|
type: dict
|
||||||
user:
|
user:
|
||||||
description:
|
description:
|
||||||
@@ -124,7 +121,6 @@ options:
|
|||||||
description:
|
description:
|
||||||
- STS token for aws type.
|
- STS token for aws type.
|
||||||
- Deprecated, please use inputs
|
- Deprecated, please use inputs
|
||||||
version_added: "2.6"
|
|
||||||
type: str
|
type: str
|
||||||
secret:
|
secret:
|
||||||
description:
|
description:
|
||||||
@@ -177,7 +173,6 @@ options:
|
|||||||
- This parameter is only valid if C(kind) is specified as C(vault).
|
- This parameter is only valid if C(kind) is specified as C(vault).
|
||||||
- Deprecated, please use inputs
|
- Deprecated, please use inputs
|
||||||
type: str
|
type: str
|
||||||
version_added: "2.8"
|
|
||||||
state:
|
state:
|
||||||
description:
|
description:
|
||||||
- Desired state of the resource.
|
- Desired state of the resource.
|
||||||
@@ -360,9 +355,9 @@ def main():
|
|||||||
# Deprication warnings
|
# Deprication warnings
|
||||||
for legacy_input in OLD_INPUT_NAMES:
|
for legacy_input in OLD_INPUT_NAMES:
|
||||||
if module.params.get(legacy_input) is not None:
|
if module.params.get(legacy_input) is not None:
|
||||||
module.deprecate(msg='{0} parameter has been deprecated, please use inputs instead'.format(legacy_input), version="3.6")
|
module.deprecate(msg='{0} parameter has been deprecated, please use inputs instead'.format(legacy_input), version="ansible.tower:4.0.0")
|
||||||
if kind:
|
if kind:
|
||||||
module.deprecate(msg='The kind parameter has been deprecated, please use credential_type instead', version="3.6")
|
module.deprecate(msg='The kind parameter has been deprecated, please use credential_type instead', version="ansible.tower:4.0.0")
|
||||||
|
|
||||||
cred_type_id = module.resolve_name_to_id('credential_types', credential_type if credential_type else KIND_CHOICES[kind])
|
cred_type_id = module.resolve_name_to_id('credential_types', credential_type if credential_type else KIND_CHOICES[kind])
|
||||||
if organization:
|
if organization:
|
||||||
|
|||||||
@@ -18,7 +18,6 @@ DOCUMENTATION = '''
|
|||||||
---
|
---
|
||||||
module: tower_credential_type
|
module: tower_credential_type
|
||||||
author: "Adrien Fleury (@fleu42)"
|
author: "Adrien Fleury (@fleu42)"
|
||||||
version_added: "2.7"
|
|
||||||
short_description: Create, update, or destroy custom Ansible Tower credential type.
|
short_description: Create, update, or destroy custom Ansible Tower credential type.
|
||||||
description:
|
description:
|
||||||
- Create, update, or destroy Ansible Tower credential type. See
|
- Create, update, or destroy Ansible Tower credential type. See
|
||||||
|
|||||||
@@ -17,7 +17,6 @@ DOCUMENTATION = '''
|
|||||||
---
|
---
|
||||||
module: tower_group
|
module: tower_group
|
||||||
author: "Wayne Witzel III (@wwitzel3)"
|
author: "Wayne Witzel III (@wwitzel3)"
|
||||||
version_added: "2.3"
|
|
||||||
short_description: create, update, or destroy Ansible Tower group.
|
short_description: create, update, or destroy Ansible Tower group.
|
||||||
description:
|
description:
|
||||||
- Create, update, or destroy Ansible Tower groups. See
|
- Create, update, or destroy Ansible Tower groups. See
|
||||||
@@ -63,7 +62,6 @@ options:
|
|||||||
description:
|
description:
|
||||||
- A new name for this group (for renaming)
|
- A new name for this group (for renaming)
|
||||||
type: str
|
type: str
|
||||||
version_added: "3.7"
|
|
||||||
extends_documentation_fragment: awx.awx.auth
|
extends_documentation_fragment: awx.awx.auth
|
||||||
'''
|
'''
|
||||||
|
|
||||||
|
|||||||
@@ -16,7 +16,6 @@ ANSIBLE_METADATA = {'metadata_version': '1.1',
|
|||||||
DOCUMENTATION = '''
|
DOCUMENTATION = '''
|
||||||
---
|
---
|
||||||
module: tower_host
|
module: tower_host
|
||||||
version_added: "2.3"
|
|
||||||
author: "Wayne Witzel III (@wwitzel3)"
|
author: "Wayne Witzel III (@wwitzel3)"
|
||||||
short_description: create, update, or destroy Ansible Tower host.
|
short_description: create, update, or destroy Ansible Tower host.
|
||||||
description:
|
description:
|
||||||
@@ -32,7 +31,6 @@ options:
|
|||||||
description:
|
description:
|
||||||
- To use when changing a hosts's name.
|
- To use when changing a hosts's name.
|
||||||
type: str
|
type: str
|
||||||
version_added: "3.7"
|
|
||||||
description:
|
description:
|
||||||
description:
|
description:
|
||||||
- The description to use for the host.
|
- The description to use for the host.
|
||||||
|
|||||||
@@ -16,7 +16,6 @@ ANSIBLE_METADATA = {'metadata_version': '1.1',
|
|||||||
DOCUMENTATION = '''
|
DOCUMENTATION = '''
|
||||||
---
|
---
|
||||||
module: tower_inventory
|
module: tower_inventory
|
||||||
version_added: "2.3"
|
|
||||||
author: "Wayne Witzel III (@wwitzel3)"
|
author: "Wayne Witzel III (@wwitzel3)"
|
||||||
short_description: create, update, or destroy Ansible Tower inventory.
|
short_description: create, update, or destroy Ansible Tower inventory.
|
||||||
description:
|
description:
|
||||||
@@ -46,12 +45,10 @@ options:
|
|||||||
- 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"
|
|
||||||
type: str
|
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"
|
|
||||||
type: str
|
type: str
|
||||||
state:
|
state:
|
||||||
description:
|
description:
|
||||||
|
|||||||
@@ -17,7 +17,6 @@ DOCUMENTATION = '''
|
|||||||
---
|
---
|
||||||
module: tower_inventory_source
|
module: tower_inventory_source
|
||||||
author: "Adrien Fleury (@fleu42)"
|
author: "Adrien Fleury (@fleu42)"
|
||||||
version_added: "2.7"
|
|
||||||
short_description: create, update, or destroy Ansible Tower inventory source.
|
short_description: create, update, or destroy Ansible Tower inventory source.
|
||||||
description:
|
description:
|
||||||
- Create, update, or destroy Ansible Tower inventory source. See
|
- Create, update, or destroy Ansible Tower inventory source. See
|
||||||
@@ -32,7 +31,6 @@ options:
|
|||||||
description:
|
description:
|
||||||
- A new name for this assets (will rename the asset)
|
- A new name for this assets (will rename the asset)
|
||||||
type: str
|
type: str
|
||||||
version_added: "3.7"
|
|
||||||
description:
|
description:
|
||||||
description:
|
description:
|
||||||
- The description to use for the inventory source.
|
- The description to use for the inventory source.
|
||||||
@@ -85,7 +83,6 @@ options:
|
|||||||
- 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
|
type: bool
|
||||||
custom_virtualenv:
|
custom_virtualenv:
|
||||||
version_added: "2.9"
|
|
||||||
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
|
type: str
|
||||||
|
|||||||
@@ -17,7 +17,6 @@ DOCUMENTATION = '''
|
|||||||
---
|
---
|
||||||
module: tower_job_cancel
|
module: tower_job_cancel
|
||||||
author: "Wayne Witzel III (@wwitzel3)"
|
author: "Wayne Witzel III (@wwitzel3)"
|
||||||
version_added: "2.3"
|
|
||||||
short_description: Cancel an Ansible Tower Job.
|
short_description: Cancel an Ansible Tower Job.
|
||||||
description:
|
description:
|
||||||
- Cancel Ansible Tower jobs. See
|
- Cancel Ansible Tower jobs. See
|
||||||
|
|||||||
@@ -17,7 +17,6 @@ DOCUMENTATION = '''
|
|||||||
---
|
---
|
||||||
module: tower_job_launch
|
module: tower_job_launch
|
||||||
author: "Wayne Witzel III (@wwitzel3)"
|
author: "Wayne Witzel III (@wwitzel3)"
|
||||||
version_added: "2.3"
|
|
||||||
short_description: Launch an Ansible Job.
|
short_description: Launch an Ansible Job.
|
||||||
description:
|
description:
|
||||||
- Launch an Ansible Tower jobs. See
|
- Launch an Ansible Tower jobs. See
|
||||||
@@ -64,29 +63,24 @@ options:
|
|||||||
- A specific of the SCM project to run the template on.
|
- A specific of the SCM project to run the template on.
|
||||||
- This is only applicable if your project allows for branch override.
|
- This is only applicable if your project allows for branch override.
|
||||||
type: str
|
type: str
|
||||||
version_added: "3.7"
|
|
||||||
skip_tags:
|
skip_tags:
|
||||||
description:
|
description:
|
||||||
- Specific tags to skip from the playbook.
|
- Specific tags to skip from the playbook.
|
||||||
type: list
|
type: list
|
||||||
elements: str
|
elements: str
|
||||||
version_added: "3.7"
|
|
||||||
verbosity:
|
verbosity:
|
||||||
description:
|
description:
|
||||||
- Verbosity level for this job run
|
- Verbosity level for this job run
|
||||||
type: int
|
type: int
|
||||||
choices: [ 0, 1, 2, 3, 4, 5 ]
|
choices: [ 0, 1, 2, 3, 4, 5 ]
|
||||||
version_added: "3.7"
|
|
||||||
diff_mode:
|
diff_mode:
|
||||||
description:
|
description:
|
||||||
- Show the changes made by Ansible tasks where supported
|
- Show the changes made by Ansible tasks where supported
|
||||||
type: bool
|
type: bool
|
||||||
version_added: "3.7"
|
|
||||||
credential_passwords:
|
credential_passwords:
|
||||||
description:
|
description:
|
||||||
- Passwords for credentials which are set to prompt on launch
|
- Passwords for credentials which are set to prompt on launch
|
||||||
type: dict
|
type: dict
|
||||||
version_added: "3.7"
|
|
||||||
extends_documentation_fragment: awx.awx.auth
|
extends_documentation_fragment: awx.awx.auth
|
||||||
'''
|
'''
|
||||||
|
|
||||||
|
|||||||
@@ -17,7 +17,6 @@ DOCUMENTATION = '''
|
|||||||
---
|
---
|
||||||
module: tower_job_list
|
module: tower_job_list
|
||||||
author: "Wayne Witzel III (@wwitzel3)"
|
author: "Wayne Witzel III (@wwitzel3)"
|
||||||
version_added: "2.3"
|
|
||||||
short_description: List Ansible Tower jobs.
|
short_description: List Ansible Tower jobs.
|
||||||
description:
|
description:
|
||||||
- List Ansible Tower jobs. See
|
- List Ansible Tower jobs. See
|
||||||
|
|||||||
@@ -17,7 +17,6 @@ DOCUMENTATION = '''
|
|||||||
---
|
---
|
||||||
module: tower_job_template
|
module: tower_job_template
|
||||||
author: "Wayne Witzel III (@wwitzel3)"
|
author: "Wayne Witzel III (@wwitzel3)"
|
||||||
version_added: "2.3"
|
|
||||||
short_description: create, update, or destroy Ansible Tower job templates.
|
short_description: create, update, or destroy Ansible Tower job templates.
|
||||||
description:
|
description:
|
||||||
- Create, update, or destroy Ansible Tower job templates. See
|
- Create, update, or destroy Ansible Tower job templates. See
|
||||||
@@ -57,19 +56,16 @@ options:
|
|||||||
description:
|
description:
|
||||||
- Name of the credential to use for the job template.
|
- Name of the credential to use for the job template.
|
||||||
- Deprecated, use 'credentials'.
|
- Deprecated, use 'credentials'.
|
||||||
version_added: 2.7
|
|
||||||
type: str
|
type: str
|
||||||
credentials:
|
credentials:
|
||||||
description:
|
description:
|
||||||
- List of credentials to use for the job template.
|
- List of credentials to use for the job template.
|
||||||
type: list
|
type: list
|
||||||
elements: str
|
elements: str
|
||||||
version_added: 2.8
|
|
||||||
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.
|
||||||
- Deprecated, use 'credentials'.
|
- Deprecated, use 'credentials'.
|
||||||
version_added: 2.7
|
|
||||||
type: str
|
type: str
|
||||||
forks:
|
forks:
|
||||||
description:
|
description:
|
||||||
@@ -89,7 +85,6 @@ options:
|
|||||||
description:
|
description:
|
||||||
- Specify C(extra_vars) for the template.
|
- Specify C(extra_vars) for the template.
|
||||||
type: dict
|
type: dict
|
||||||
version_added: 3.7
|
|
||||||
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.
|
||||||
@@ -97,7 +92,6 @@ options:
|
|||||||
force_handlers:
|
force_handlers:
|
||||||
description:
|
description:
|
||||||
- Enable forcing playbook handlers to run even if a task fails.
|
- Enable forcing playbook handlers to run even if a task fails.
|
||||||
version_added: 2.7
|
|
||||||
type: bool
|
type: bool
|
||||||
default: 'no'
|
default: 'no'
|
||||||
aliases:
|
aliases:
|
||||||
@@ -109,12 +103,10 @@ options:
|
|||||||
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
|
|
||||||
type: str
|
type: str
|
||||||
diff_mode:
|
diff_mode:
|
||||||
description:
|
description:
|
||||||
- Enable diff mode for the job template.
|
- Enable diff mode for the job template.
|
||||||
version_added: 2.7
|
|
||||||
type: bool
|
type: bool
|
||||||
aliases:
|
aliases:
|
||||||
- diff_mode_enabled
|
- diff_mode_enabled
|
||||||
@@ -122,7 +114,6 @@ options:
|
|||||||
use_fact_cache:
|
use_fact_cache:
|
||||||
description:
|
description:
|
||||||
- Enable use of fact caching for the job template.
|
- Enable use of fact caching for the job template.
|
||||||
version_added: 2.7
|
|
||||||
type: bool
|
type: bool
|
||||||
default: 'no'
|
default: 'no'
|
||||||
aliases:
|
aliases:
|
||||||
@@ -139,7 +130,6 @@ options:
|
|||||||
ask_diff_mode_on_launch:
|
ask_diff_mode_on_launch:
|
||||||
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.
|
||||||
version_added: 2.7
|
|
||||||
type: bool
|
type: bool
|
||||||
default: 'False'
|
default: 'False'
|
||||||
aliases:
|
aliases:
|
||||||
@@ -154,7 +144,6 @@ options:
|
|||||||
ask_limit_on_launch:
|
ask_limit_on_launch:
|
||||||
description:
|
description:
|
||||||
- Prompt user for a limit on launch.
|
- Prompt user for a limit on launch.
|
||||||
version_added: 2.7
|
|
||||||
type: bool
|
type: bool
|
||||||
default: 'False'
|
default: 'False'
|
||||||
aliases:
|
aliases:
|
||||||
@@ -169,7 +158,6 @@ options:
|
|||||||
ask_skip_tags_on_launch:
|
ask_skip_tags_on_launch:
|
||||||
description:
|
description:
|
||||||
- Prompt user for job tags to skip on launch.
|
- Prompt user for job tags to skip on launch.
|
||||||
version_added: 2.7
|
|
||||||
type: bool
|
type: bool
|
||||||
default: 'False'
|
default: 'False'
|
||||||
aliases:
|
aliases:
|
||||||
@@ -184,7 +172,6 @@ options:
|
|||||||
ask_verbosity_on_launch:
|
ask_verbosity_on_launch:
|
||||||
description:
|
description:
|
||||||
- Prompt user to choose a verbosity level on launch.
|
- Prompt user to choose a verbosity level on launch.
|
||||||
version_added: 2.7
|
|
||||||
type: bool
|
type: bool
|
||||||
default: 'False'
|
default: 'False'
|
||||||
aliases:
|
aliases:
|
||||||
@@ -206,13 +193,11 @@ options:
|
|||||||
survey_enabled:
|
survey_enabled:
|
||||||
description:
|
description:
|
||||||
- Enable a survey on the job template.
|
- Enable a survey on the job template.
|
||||||
version_added: 2.7
|
|
||||||
type: bool
|
type: bool
|
||||||
default: 'no'
|
default: 'no'
|
||||||
survey_spec:
|
survey_spec:
|
||||||
description:
|
description:
|
||||||
- JSON/YAML dict formatted survey definition.
|
- JSON/YAML dict formatted survey definition.
|
||||||
version_added: 2.8
|
|
||||||
type: dict
|
type: dict
|
||||||
become_enabled:
|
become_enabled:
|
||||||
description:
|
description:
|
||||||
@@ -222,7 +207,6 @@ options:
|
|||||||
allow_simultaneous:
|
allow_simultaneous:
|
||||||
description:
|
description:
|
||||||
- Allow simultaneous runs of the job template.
|
- Allow simultaneous runs of the job template.
|
||||||
version_added: 2.7
|
|
||||||
type: bool
|
type: bool
|
||||||
default: 'no'
|
default: 'no'
|
||||||
aliases:
|
aliases:
|
||||||
@@ -232,7 +216,6 @@ options:
|
|||||||
- Maximum time in seconds to wait for a job to finish (server-side).
|
- Maximum time in seconds to wait for a job to finish (server-side).
|
||||||
type: int
|
type: int
|
||||||
custom_virtualenv:
|
custom_virtualenv:
|
||||||
version_added: "2.9"
|
|
||||||
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
|
type: str
|
||||||
|
|||||||
@@ -16,7 +16,6 @@ ANSIBLE_METADATA = {'metadata_version': '1.1',
|
|||||||
DOCUMENTATION = '''
|
DOCUMENTATION = '''
|
||||||
---
|
---
|
||||||
module: tower_job_wait
|
module: tower_job_wait
|
||||||
version_added: "2.3"
|
|
||||||
author: "Wayne Witzel III (@wwitzel3)"
|
author: "Wayne Witzel III (@wwitzel3)"
|
||||||
short_description: Wait for Ansible Tower job to finish.
|
short_description: Wait for Ansible Tower job to finish.
|
||||||
description:
|
description:
|
||||||
@@ -141,7 +140,7 @@ def main():
|
|||||||
interval = abs((min_interval + max_interval) / 2)
|
interval = abs((min_interval + max_interval) / 2)
|
||||||
module.deprecate(
|
module.deprecate(
|
||||||
msg="Min and max interval have been deprecated, please use interval instead; interval will be set to {0}".format(interval),
|
msg="Min and max interval have been deprecated, please use interval instead; interval will be set to {0}".format(interval),
|
||||||
version="3.7"
|
version="ansible.tower:4.0.0"
|
||||||
)
|
)
|
||||||
|
|
||||||
# Attempt to look up job based on the provided id
|
# Attempt to look up job based on the provided id
|
||||||
|
|||||||
@@ -17,7 +17,6 @@ DOCUMENTATION = '''
|
|||||||
---
|
---
|
||||||
module: tower_label
|
module: tower_label
|
||||||
author: "Wayne Witzel III (@wwitzel3)"
|
author: "Wayne Witzel III (@wwitzel3)"
|
||||||
version_added: "2.3"
|
|
||||||
short_description: create, update, or destroy Ansible Tower labels.
|
short_description: create, update, or destroy Ansible Tower labels.
|
||||||
description:
|
description:
|
||||||
- Create, update, or destroy Ansible Tower labels. See
|
- Create, update, or destroy Ansible Tower labels. See
|
||||||
|
|||||||
@@ -16,7 +16,6 @@ DOCUMENTATION = '''
|
|||||||
---
|
---
|
||||||
module: tower_license
|
module: tower_license
|
||||||
author: "John Westcott IV (@john-westcott-iv)"
|
author: "John Westcott IV (@john-westcott-iv)"
|
||||||
version_added: "2.9"
|
|
||||||
short_description: Set the license for Ansible Tower
|
short_description: Set the license for Ansible Tower
|
||||||
description:
|
description:
|
||||||
- Get or Set Ansible Tower license. See
|
- Get or Set Ansible Tower license. See
|
||||||
@@ -27,13 +26,11 @@ options:
|
|||||||
- The contents of the license file
|
- The contents of the license file
|
||||||
required: True
|
required: True
|
||||||
type: dict
|
type: dict
|
||||||
version_added: "3.7"
|
|
||||||
eula_accepted:
|
eula_accepted:
|
||||||
description:
|
description:
|
||||||
- Whether or not the EULA is accepted.
|
- Whether or not the EULA is accepted.
|
||||||
required: True
|
required: True
|
||||||
type: bool
|
type: bool
|
||||||
version_added: "3.7"
|
|
||||||
extends_documentation_fragment: awx.awx.auth
|
extends_documentation_fragment: awx.awx.auth
|
||||||
'''
|
'''
|
||||||
|
|
||||||
|
|||||||
@@ -17,7 +17,6 @@ DOCUMENTATION = '''
|
|||||||
---
|
---
|
||||||
module: tower_notification
|
module: tower_notification
|
||||||
author: "Samuel Carpentier (@samcarpentier)"
|
author: "Samuel Carpentier (@samcarpentier)"
|
||||||
version_added: "2.8"
|
|
||||||
short_description: create, update, or destroy Ansible Tower notification.
|
short_description: create, update, or destroy Ansible Tower notification.
|
||||||
description:
|
description:
|
||||||
- Create, update, or destroy Ansible Tower notifications. See
|
- Create, update, or destroy Ansible Tower notifications. See
|
||||||
@@ -371,7 +370,9 @@ def main():
|
|||||||
# Deprecation warnings for all other params
|
# Deprecation warnings for all other params
|
||||||
for legacy_input in OLD_INPUT_NAMES:
|
for legacy_input in OLD_INPUT_NAMES:
|
||||||
if module.params.get(legacy_input) is not None:
|
if module.params.get(legacy_input) is not None:
|
||||||
module.deprecate(msg='{0} parameter has been deprecated, please use notification_configuration instead'.format(legacy_input), version="3.6")
|
module.deprecate(
|
||||||
|
msg='{0} parameter has been deprecated, please use notification_configuration instead'.format(legacy_input),
|
||||||
|
version="ansible.tower:4.0.0")
|
||||||
|
|
||||||
# Attempt to look up the related items the user specified (these will fail the module if not found)
|
# Attempt to look up the related items the user specified (these will fail the module if not found)
|
||||||
organization_id = None
|
organization_id = None
|
||||||
|
|||||||
@@ -16,7 +16,6 @@ ANSIBLE_METADATA = {'metadata_version': '1.1',
|
|||||||
DOCUMENTATION = '''
|
DOCUMENTATION = '''
|
||||||
---
|
---
|
||||||
module: tower_organization
|
module: tower_organization
|
||||||
version_added: "2.3"
|
|
||||||
author: "Wayne Witzel III (@wwitzel3)"
|
author: "Wayne Witzel III (@wwitzel3)"
|
||||||
short_description: create, update, or destroy Ansible Tower organizations
|
short_description: create, update, or destroy Ansible Tower organizations
|
||||||
description:
|
description:
|
||||||
@@ -33,7 +32,6 @@ options:
|
|||||||
- The description to use for the organization.
|
- The description to use for the organization.
|
||||||
type: str
|
type: str
|
||||||
custom_virtualenv:
|
custom_virtualenv:
|
||||||
version_added: "2.9"
|
|
||||||
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
|
type: str
|
||||||
@@ -43,7 +41,6 @@ options:
|
|||||||
- The max hosts allowed in this organizations
|
- The max hosts allowed in this organizations
|
||||||
default: "0"
|
default: "0"
|
||||||
type: int
|
type: int
|
||||||
version_added: "3.7"
|
|
||||||
state:
|
state:
|
||||||
description:
|
description:
|
||||||
- Desired state of the resource.
|
- Desired state of the resource.
|
||||||
|
|||||||
@@ -17,7 +17,6 @@ DOCUMENTATION = '''
|
|||||||
---
|
---
|
||||||
module: tower_project
|
module: tower_project
|
||||||
author: "Wayne Witzel III (@wwitzel3)"
|
author: "Wayne Witzel III (@wwitzel3)"
|
||||||
version_added: "2.3"
|
|
||||||
short_description: create, update, or destroy Ansible Tower projects
|
short_description: create, update, or destroy Ansible Tower projects
|
||||||
description:
|
description:
|
||||||
- Create, update, or destroy Ansible Tower projects. See
|
- Create, update, or destroy Ansible Tower projects. See
|
||||||
@@ -56,7 +55,6 @@ options:
|
|||||||
- The refspec to use for the SCM resource.
|
- The refspec to use for the SCM resource.
|
||||||
type: str
|
type: str
|
||||||
default: ''
|
default: ''
|
||||||
version_added: "3.7"
|
|
||||||
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.
|
||||||
@@ -77,7 +75,6 @@ options:
|
|||||||
type: bool
|
type: bool
|
||||||
default: 'no'
|
default: 'no'
|
||||||
scm_update_cache_timeout:
|
scm_update_cache_timeout:
|
||||||
version_added: "2.8"
|
|
||||||
description:
|
description:
|
||||||
- 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.
|
||||||
@@ -87,17 +84,14 @@ options:
|
|||||||
description:
|
description:
|
||||||
- Allow changing the SCM branch or revision in a job template that uses this project.
|
- Allow changing the SCM branch or revision in a job template that uses this project.
|
||||||
type: bool
|
type: bool
|
||||||
version_added: "3.7"
|
|
||||||
aliases:
|
aliases:
|
||||||
- scm_allow_override
|
- scm_allow_override
|
||||||
job_timeout:
|
job_timeout:
|
||||||
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
|
type: int
|
||||||
custom_virtualenv:
|
custom_virtualenv:
|
||||||
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
|
type: str
|
||||||
|
|||||||
@@ -17,11 +17,10 @@ DOCUMENTATION = '''
|
|||||||
---
|
---
|
||||||
module: tower_receive
|
module: tower_receive
|
||||||
deprecated:
|
deprecated:
|
||||||
removed_in: "3.7"
|
removed_in: "14.0.0"
|
||||||
why: Deprecated in favor of upcoming C(_export) module.
|
why: Deprecated in favor of upcoming C(_export) module.
|
||||||
alternative: Once published, use M(tower_export) instead.
|
alternative: Once published, use M(tower_export) instead.
|
||||||
author: "John Westcott IV (@john-westcott-iv)"
|
author: "John Westcott IV (@john-westcott-iv)"
|
||||||
version_added: "2.8"
|
|
||||||
short_description: Receive assets from Ansible Tower.
|
short_description: Receive assets from Ansible Tower.
|
||||||
description:
|
description:
|
||||||
- Receive assets from Ansible Tower. See
|
- Receive assets from Ansible Tower. See
|
||||||
@@ -166,7 +165,7 @@ def main():
|
|||||||
|
|
||||||
module = TowerModule(argument_spec=argument_spec, supports_check_mode=False)
|
module = TowerModule(argument_spec=argument_spec, supports_check_mode=False)
|
||||||
|
|
||||||
module.deprecate(msg="This module is deprecated and will be replaced by the AWX CLI export command.", version="3.7")
|
module.deprecate(msg="This module is deprecated and will be replaced by the AWX CLI export command.", version="awx.awx:14.0.0")
|
||||||
|
|
||||||
if not HAS_TOWER_CLI:
|
if not HAS_TOWER_CLI:
|
||||||
module.fail_json(msg='ansible-tower-cli required for this module')
|
module.fail_json(msg='ansible-tower-cli required for this module')
|
||||||
|
|||||||
@@ -16,7 +16,6 @@ ANSIBLE_METADATA = {'metadata_version': '1.1',
|
|||||||
DOCUMENTATION = '''
|
DOCUMENTATION = '''
|
||||||
---
|
---
|
||||||
module: tower_role
|
module: tower_role
|
||||||
version_added: "2.3"
|
|
||||||
author: "Wayne Witzel III (@wwitzel3)"
|
author: "Wayne Witzel III (@wwitzel3)"
|
||||||
short_description: grant or revoke an Ansible Tower role.
|
short_description: grant or revoke an Ansible Tower role.
|
||||||
description:
|
description:
|
||||||
|
|||||||
@@ -17,7 +17,6 @@ DOCUMENTATION = '''
|
|||||||
---
|
---
|
||||||
module: tower_schedule
|
module: tower_schedule
|
||||||
author: "John Westcott IV (@john-westcott-iv)"
|
author: "John Westcott IV (@john-westcott-iv)"
|
||||||
version_added: "2.3"
|
|
||||||
short_description: create, update, or destroy Ansible Tower schedules.
|
short_description: create, update, or destroy Ansible Tower schedules.
|
||||||
description:
|
description:
|
||||||
- Create, update, or destroy Ansible Tower schedules. See
|
- Create, update, or destroy Ansible Tower schedules. See
|
||||||
|
|||||||
@@ -17,11 +17,10 @@ DOCUMENTATION = '''
|
|||||||
---
|
---
|
||||||
module: tower_send
|
module: tower_send
|
||||||
deprecated:
|
deprecated:
|
||||||
removed_in: "3.7"
|
removed_in: "14.0.0"
|
||||||
why: Deprecated in favor of upcoming C(_import) module.
|
why: Deprecated in favor of upcoming C(_import) module.
|
||||||
alternative: Once published, use M(tower_import) instead.
|
alternative: Once published, use M(tower_import) instead.
|
||||||
author: "John Westcott IV (@john-westcott-iv)"
|
author: "John Westcott IV (@john-westcott-iv)"
|
||||||
version_added: "2.8"
|
|
||||||
short_description: Send assets to Ansible Tower.
|
short_description: Send assets to Ansible Tower.
|
||||||
description:
|
description:
|
||||||
- Send assets to Ansible Tower. See
|
- Send assets to Ansible Tower. See
|
||||||
@@ -106,7 +105,7 @@ def main():
|
|||||||
|
|
||||||
module = TowerModule(argument_spec=argument_spec, supports_check_mode=False)
|
module = TowerModule(argument_spec=argument_spec, supports_check_mode=False)
|
||||||
|
|
||||||
module.deprecate(msg="This module is deprecated and will be replaced by the AWX CLI import command", version="3.7")
|
module.deprecate(msg="This module is deprecated and will be replaced by the AWX CLI import command", version="awx.awx:14.0.0")
|
||||||
|
|
||||||
if not HAS_TOWER_CLI:
|
if not HAS_TOWER_CLI:
|
||||||
module.fail_json(msg='ansible-tower-cli required for this module')
|
module.fail_json(msg='ansible-tower-cli required for this module')
|
||||||
|
|||||||
@@ -17,7 +17,6 @@ DOCUMENTATION = '''
|
|||||||
---
|
---
|
||||||
module: tower_settings
|
module: tower_settings
|
||||||
author: "Nikhil Jain (@jainnikhil30)"
|
author: "Nikhil Jain (@jainnikhil30)"
|
||||||
version_added: "2.7"
|
|
||||||
short_description: Modify Ansible Tower settings.
|
short_description: Modify Ansible Tower settings.
|
||||||
description:
|
description:
|
||||||
- Modify Ansible Tower settings. See
|
- Modify Ansible Tower settings. See
|
||||||
@@ -37,7 +36,6 @@ options:
|
|||||||
description:
|
description:
|
||||||
- A data structure to be sent into the settings endpoint
|
- A data structure to be sent into the settings endpoint
|
||||||
type: dict
|
type: dict
|
||||||
version_added: "3.7"
|
|
||||||
requirements:
|
requirements:
|
||||||
- pyyaml
|
- pyyaml
|
||||||
extends_documentation_fragment: awx.awx.auth
|
extends_documentation_fragment: awx.awx.auth
|
||||||
|
|||||||
@@ -17,7 +17,6 @@ DOCUMENTATION = '''
|
|||||||
---
|
---
|
||||||
module: tower_team
|
module: tower_team
|
||||||
author: "Wayne Witzel III (@wwitzel3)"
|
author: "Wayne Witzel III (@wwitzel3)"
|
||||||
version_added: "2.3"
|
|
||||||
short_description: create, update, or destroy Ansible Tower team.
|
short_description: create, update, or destroy Ansible Tower team.
|
||||||
description:
|
description:
|
||||||
- Create, update, or destroy Ansible Tower teams. See
|
- Create, update, or destroy Ansible Tower teams. See
|
||||||
@@ -32,7 +31,6 @@ options:
|
|||||||
description:
|
description:
|
||||||
- To use when changing a team's name.
|
- To use when changing a team's name.
|
||||||
type: str
|
type: str
|
||||||
version_added: "3.7"
|
|
||||||
description:
|
description:
|
||||||
description:
|
description:
|
||||||
- The description to use for the team.
|
- The description to use for the team.
|
||||||
|
|||||||
@@ -17,7 +17,6 @@ DOCUMENTATION = '''
|
|||||||
---
|
---
|
||||||
module: tower_user
|
module: tower_user
|
||||||
author: "John Westcott IV (@john-westcott-iv)"
|
author: "John Westcott IV (@john-westcott-iv)"
|
||||||
version_added: "2.3"
|
|
||||||
short_description: create, update, or destroy Ansible Tower users.
|
short_description: create, update, or destroy Ansible Tower users.
|
||||||
description:
|
description:
|
||||||
- Create, update, or destroy Ansible Tower users. See
|
- Create, update, or destroy Ansible Tower users. See
|
||||||
|
|||||||
@@ -17,7 +17,6 @@ DOCUMENTATION = '''
|
|||||||
---
|
---
|
||||||
module: tower_workflow_job_template
|
module: tower_workflow_job_template
|
||||||
author: "John Westcott IV (@john-westcott-iv)"
|
author: "John Westcott IV (@john-westcott-iv)"
|
||||||
version_added: "2.3"
|
|
||||||
short_description: create, update, or destroy Ansible Tower workflow job templates.
|
short_description: create, update, or destroy Ansible Tower workflow job templates.
|
||||||
description:
|
description:
|
||||||
- Create, update, or destroy Ansible Tower workflow job templates.
|
- Create, update, or destroy Ansible Tower workflow job templates.
|
||||||
|
|||||||
@@ -17,7 +17,6 @@ DOCUMENTATION = '''
|
|||||||
---
|
---
|
||||||
module: tower_workflow_job_template_node
|
module: tower_workflow_job_template_node
|
||||||
author: "John Westcott IV (@john-westcott-iv)"
|
author: "John Westcott IV (@john-westcott-iv)"
|
||||||
version_added: "2.3"
|
|
||||||
short_description: create, update, or destroy Ansible Tower workflow job template nodes.
|
short_description: create, update, or destroy Ansible Tower workflow job template nodes.
|
||||||
description:
|
description:
|
||||||
- Create, update, or destroy Ansible Tower workflow job template nodes.
|
- Create, update, or destroy Ansible Tower workflow job template nodes.
|
||||||
|
|||||||
@@ -14,7 +14,6 @@ DOCUMENTATION = '''
|
|||||||
---
|
---
|
||||||
module: tower_workflow_launch
|
module: tower_workflow_launch
|
||||||
author: "John Westcott IV (@john-westcott-iv)"
|
author: "John Westcott IV (@john-westcott-iv)"
|
||||||
version_added: "2.8"
|
|
||||||
short_description: Run a workflow in Ansible Tower
|
short_description: Run a workflow in Ansible Tower
|
||||||
description:
|
description:
|
||||||
- Launch an Ansible Tower workflows. See
|
- Launch an Ansible Tower workflows. See
|
||||||
@@ -32,7 +31,6 @@ options:
|
|||||||
- Organization the workflow job template exists in.
|
- Organization the workflow job template exists in.
|
||||||
- Used to help lookup the object, cannot be modified using this module.
|
- Used to help lookup the object, cannot be modified using this module.
|
||||||
- If not provided, will lookup by name only, which does not work with duplicates.
|
- If not provided, will lookup by name only, which does not work with duplicates.
|
||||||
required: False
|
|
||||||
type: str
|
type: str
|
||||||
inventory:
|
inventory:
|
||||||
description:
|
description:
|
||||||
@@ -47,7 +45,6 @@ options:
|
|||||||
- A specific branch of the SCM project to run the template on.
|
- A specific branch of the SCM project to run the template on.
|
||||||
- This is only applicable if your project allows for branch override.
|
- This is only applicable if your project allows for branch override.
|
||||||
type: str
|
type: str
|
||||||
version_added: "3.7"
|
|
||||||
extra_vars:
|
extra_vars:
|
||||||
description:
|
description:
|
||||||
- Any extra vars required to launch the job.
|
- Any extra vars required to launch the job.
|
||||||
|
|||||||
@@ -17,11 +17,10 @@ DOCUMENTATION = '''
|
|||||||
---
|
---
|
||||||
module: tower_workflow_template
|
module: tower_workflow_template
|
||||||
deprecated:
|
deprecated:
|
||||||
removed_in: "3.7"
|
removed_in: "14.0.0"
|
||||||
why: Deprecated in favor of C(_workflow_job_template) and C(_workflow_job_template_node) modules.
|
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.
|
alternative: Use M(tower_workflow_job_template) and M(_workflow_job_template_node) instead.
|
||||||
author: "Adrien Fleury (@fleu42)"
|
author: "Adrien Fleury (@fleu42)"
|
||||||
version_added: "2.7"
|
|
||||||
short_description: create, update, or destroy Ansible Tower workflow template.
|
short_description: create, update, or destroy Ansible Tower workflow template.
|
||||||
description:
|
description:
|
||||||
- A tower-cli based module for CRUD actions on workflow job templates.
|
- A tower-cli based module for CRUD actions on workflow job templates.
|
||||||
@@ -37,12 +36,10 @@ options:
|
|||||||
description:
|
description:
|
||||||
- Prompt user for (extra_vars) on launch.
|
- Prompt user for (extra_vars) on launch.
|
||||||
type: bool
|
type: bool
|
||||||
version_added: "2.9"
|
|
||||||
ask_inventory:
|
ask_inventory:
|
||||||
description:
|
description:
|
||||||
- Prompt user for inventory on launch.
|
- Prompt user for inventory on launch.
|
||||||
type: bool
|
type: bool
|
||||||
version_added: "2.9"
|
|
||||||
description:
|
description:
|
||||||
description:
|
description:
|
||||||
- The description to use for the workflow.
|
- The description to use for the workflow.
|
||||||
@@ -54,7 +51,6 @@ options:
|
|||||||
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"
|
|
||||||
type: str
|
type: str
|
||||||
name:
|
name:
|
||||||
description:
|
description:
|
||||||
@@ -153,7 +149,7 @@ def main():
|
|||||||
"This module is replaced by the combination of tower_workflow_job_template and "
|
"This module is replaced by the combination of tower_workflow_job_template and "
|
||||||
"tower_workflow_job_template_node. This uses the old tower-cli and wll be "
|
"tower_workflow_job_template_node. This uses the old tower-cli and wll be "
|
||||||
"removed in 2022."
|
"removed in 2022."
|
||||||
), version='4.2.0')
|
), version='awx.awx:14.0.0')
|
||||||
|
|
||||||
name = module.params.get('name')
|
name = module.params.get('name')
|
||||||
state = module.params.get('state')
|
state = module.params.get('state')
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
plugins/modules/tower_receive.py validate-modules:deprecation-mismatch
|
plugins/modules/tower_receive.py validate-modules:deprecation-mismatch
|
||||||
plugins/modules/tower_receive.py validate-modules:invalid-documentation
|
|
||||||
plugins/modules/tower_send.py validate-modules:deprecation-mismatch
|
plugins/modules/tower_send.py validate-modules:deprecation-mismatch
|
||||||
plugins/modules/tower_send.py validate-modules:invalid-documentation
|
|
||||||
plugins/modules/tower_workflow_template.py validate-modules:deprecation-mismatch
|
plugins/modules/tower_workflow_template.py validate-modules:deprecation-mismatch
|
||||||
plugins/modules/tower_workflow_template.py validate-modules:invalid-documentation
|
plugins/modules/tower_credential.py pylint:wrong-collection-deprecated-version-tag
|
||||||
|
plugins/modules/tower_job_wait.py pylint:wrong-collection-deprecated-version-tag
|
||||||
|
plugins/modules/tower_notification.py pylint:wrong-collection-deprecated-version-tag
|
||||||
|
|||||||
@@ -24,7 +24,7 @@ DOCUMENTATION = '''
|
|||||||
---
|
---
|
||||||
module: tower_{{ singular_item_type }}
|
module: tower_{{ singular_item_type }}
|
||||||
author: "John Westcott IV (@john-westcott-iv)"
|
author: "John Westcott IV (@john-westcott-iv)"
|
||||||
version_added: "2.3"
|
version_added: "4.0"
|
||||||
short_description: create, update, or destroy Ansible Tower {{ human_readable }}.
|
short_description: create, update, or destroy Ansible Tower {{ human_readable }}.
|
||||||
description:
|
description:
|
||||||
- Create, update, or destroy Ansible Tower {{ human_readable }}. See
|
- Create, update, or destroy Ansible Tower {{ human_readable }}. See
|
||||||
@@ -87,7 +87,6 @@ options:
|
|||||||
- The Tower OAuth token to use.
|
- The Tower OAuth token to use.
|
||||||
required: False
|
required: False
|
||||||
type: str
|
type: str
|
||||||
version_added: "3.7"
|
|
||||||
extends_documentation_fragment: awx.awx.auth
|
extends_documentation_fragment: awx.awx.auth
|
||||||
'''
|
'''
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user