mirror of
https://github.com/ansible/awx.git
synced 2026-02-24 14:36:00 -03:30
Fix collection module docs for names, IDs, and named URLs (#14269)
This commit is contained in:
@@ -29,12 +29,12 @@ options:
|
|||||||
choices: [ 'run', 'check' ]
|
choices: [ 'run', 'check' ]
|
||||||
execution_environment:
|
execution_environment:
|
||||||
description:
|
description:
|
||||||
- Execution Environment to use for the ad hoc command.
|
- Execution Environment name, ID, or named URL to use for the ad hoc command.
|
||||||
required: False
|
required: False
|
||||||
type: str
|
type: str
|
||||||
inventory:
|
inventory:
|
||||||
description:
|
description:
|
||||||
- Inventory to use for the ad hoc command.
|
- Inventory name, ID, or named URL to use for the ad hoc command.
|
||||||
required: True
|
required: True
|
||||||
type: str
|
type: str
|
||||||
limit:
|
limit:
|
||||||
@@ -43,7 +43,7 @@ options:
|
|||||||
type: str
|
type: str
|
||||||
credential:
|
credential:
|
||||||
description:
|
description:
|
||||||
- Credential to use for ad hoc command.
|
- Credential name, ID, or named URL to use for ad hoc command.
|
||||||
required: True
|
required: True
|
||||||
type: str
|
type: str
|
||||||
module_name:
|
module_name:
|
||||||
|
|||||||
@@ -48,7 +48,7 @@ options:
|
|||||||
required: False
|
required: False
|
||||||
organization:
|
organization:
|
||||||
description:
|
description:
|
||||||
- Name of organization for application.
|
- Name, ID, or named URL of organization for application.
|
||||||
type: str
|
type: str
|
||||||
required: True
|
required: True
|
||||||
redirect_uris:
|
redirect_uris:
|
||||||
|
|||||||
@@ -48,7 +48,7 @@ options:
|
|||||||
type: str
|
type: str
|
||||||
inventory:
|
inventory:
|
||||||
description:
|
description:
|
||||||
- Inventory name or ID the hosts should be made a member of.
|
- Inventory name, ID, or named URL the hosts should be made a member of.
|
||||||
required: True
|
required: True
|
||||||
type: str
|
type: str
|
||||||
extends_documentation_fragment: awx.awx.auth
|
extends_documentation_fragment: awx.awx.auth
|
||||||
|
|||||||
@@ -128,7 +128,7 @@ options:
|
|||||||
type: str
|
type: str
|
||||||
inventory:
|
inventory:
|
||||||
description:
|
description:
|
||||||
- Inventory name or ID to use for the jobs ran within the bulk job, only used if prompt for inventory is set.
|
- Inventory name, ID, or named URL to use for the jobs ran within the bulk job, only used if prompt for inventory is set.
|
||||||
type: str
|
type: str
|
||||||
scm_branch:
|
scm_branch:
|
||||||
description:
|
description:
|
||||||
|
|||||||
@@ -45,7 +45,7 @@ options:
|
|||||||
type: str
|
type: str
|
||||||
organization:
|
organization:
|
||||||
description:
|
description:
|
||||||
- Organization that should own the credential.
|
- Organization name, ID, or named URL that should own the credential.
|
||||||
type: str
|
type: str
|
||||||
credential_type:
|
credential_type:
|
||||||
description:
|
description:
|
||||||
@@ -92,11 +92,11 @@ options:
|
|||||||
default: true
|
default: true
|
||||||
user:
|
user:
|
||||||
description:
|
description:
|
||||||
- User that should own this credential.
|
- User name, ID, or named URL that should own this credential.
|
||||||
type: str
|
type: str
|
||||||
team:
|
team:
|
||||||
description:
|
description:
|
||||||
- Team that should own this credential.
|
- Team name, ID, or named URL that should own this credential.
|
||||||
type: str
|
type: str
|
||||||
state:
|
state:
|
||||||
description:
|
description:
|
||||||
|
|||||||
@@ -38,12 +38,12 @@ options:
|
|||||||
type: dict
|
type: dict
|
||||||
target_credential:
|
target_credential:
|
||||||
description:
|
description:
|
||||||
- The credential which will have its input defined by this source
|
- The credential name, ID, or named URL which will have its input defined by this source
|
||||||
required: true
|
required: true
|
||||||
type: str
|
type: str
|
||||||
source_credential:
|
source_credential:
|
||||||
description:
|
description:
|
||||||
- The credential which is the source of the credential lookup
|
- The credential name, ID, or named URL which is the source of the credential lookup
|
||||||
type: str
|
type: str
|
||||||
state:
|
state:
|
||||||
description:
|
description:
|
||||||
|
|||||||
@@ -41,11 +41,11 @@ options:
|
|||||||
type: str
|
type: str
|
||||||
organization:
|
organization:
|
||||||
description:
|
description:
|
||||||
- The organization the execution environment belongs to.
|
- The organization name, ID, or named URL that the execution environment belongs to.
|
||||||
type: str
|
type: str
|
||||||
credential:
|
credential:
|
||||||
description:
|
description:
|
||||||
- Name of the credential to use for the execution environment.
|
- Name, ID, or named URL of the credential to use for the execution environment.
|
||||||
type: str
|
type: str
|
||||||
state:
|
state:
|
||||||
description:
|
description:
|
||||||
|
|||||||
@@ -28,72 +28,72 @@ options:
|
|||||||
default: 'False'
|
default: 'False'
|
||||||
organizations:
|
organizations:
|
||||||
description:
|
description:
|
||||||
- organization names to export
|
- organization names, IDs, or named URLs to export
|
||||||
type: list
|
type: list
|
||||||
elements: str
|
elements: str
|
||||||
users:
|
users:
|
||||||
description:
|
description:
|
||||||
- user names to export
|
- user names, IDs, or named URLs to export
|
||||||
type: list
|
type: list
|
||||||
elements: str
|
elements: str
|
||||||
teams:
|
teams:
|
||||||
description:
|
description:
|
||||||
- team names to export
|
- team names, IDs, or named URLs to export
|
||||||
type: list
|
type: list
|
||||||
elements: str
|
elements: str
|
||||||
credential_types:
|
credential_types:
|
||||||
description:
|
description:
|
||||||
- credential type names to export
|
- credential type names, IDs, or named URLs to export
|
||||||
type: list
|
type: list
|
||||||
elements: str
|
elements: str
|
||||||
credentials:
|
credentials:
|
||||||
description:
|
description:
|
||||||
- credential names to export
|
- credential names, IDs, or named URLs to export
|
||||||
type: list
|
type: list
|
||||||
elements: str
|
elements: str
|
||||||
execution_environments:
|
execution_environments:
|
||||||
description:
|
description:
|
||||||
- execution environment names to export
|
- execution environment names, IDs, or named URLs to export
|
||||||
type: list
|
type: list
|
||||||
elements: str
|
elements: str
|
||||||
notification_templates:
|
notification_templates:
|
||||||
description:
|
description:
|
||||||
- notification template names to export
|
- notification template names, IDs, or named URLs to export
|
||||||
type: list
|
type: list
|
||||||
elements: str
|
elements: str
|
||||||
inventory_sources:
|
inventory_sources:
|
||||||
description:
|
description:
|
||||||
- inventory soruces to export
|
- inventory source name, ID, or named URLs to export
|
||||||
type: list
|
type: list
|
||||||
elements: str
|
elements: str
|
||||||
inventory:
|
inventory:
|
||||||
description:
|
description:
|
||||||
- inventory names to export
|
- inventory names, IDs, or named URLs to export
|
||||||
type: list
|
type: list
|
||||||
elements: str
|
elements: str
|
||||||
projects:
|
projects:
|
||||||
description:
|
description:
|
||||||
- project names to export
|
- project names, IDs, or named URLs to export
|
||||||
type: list
|
type: list
|
||||||
elements: str
|
elements: str
|
||||||
job_templates:
|
job_templates:
|
||||||
description:
|
description:
|
||||||
- job template names to export
|
- job template names, IDs, or named URLs to export
|
||||||
type: list
|
type: list
|
||||||
elements: str
|
elements: str
|
||||||
workflow_job_templates:
|
workflow_job_templates:
|
||||||
description:
|
description:
|
||||||
- workflow names to export
|
- workflow names, IDs, or named URLs to export
|
||||||
type: list
|
type: list
|
||||||
elements: str
|
elements: str
|
||||||
applications:
|
applications:
|
||||||
description:
|
description:
|
||||||
- OAuth2 application names to export
|
- OAuth2 application names, IDs, or named URLs to export
|
||||||
type: list
|
type: list
|
||||||
elements: str
|
elements: str
|
||||||
schedules:
|
schedules:
|
||||||
description:
|
description:
|
||||||
- schedule names to export
|
- schedule names, IDs, or named URLs to export
|
||||||
type: list
|
type: list
|
||||||
elements: str
|
elements: str
|
||||||
requirements:
|
requirements:
|
||||||
@@ -154,7 +154,7 @@ def main():
|
|||||||
|
|
||||||
# The exporter code currently works like the following:
|
# The exporter code currently works like the following:
|
||||||
# Empty string == all assets of that type
|
# Empty string == all assets of that type
|
||||||
# Non-Empty string = just a list of assets of that type (by name or ID)
|
# Non-Empty string = just a list of assets of that type (by name, ID, or named URL)
|
||||||
# Asset type not present or None = skip asset type (unless everything is None, then export all)
|
# Asset type not present or None = skip asset type (unless everything is None, then export all)
|
||||||
# Here we are going to setup a dict of values to export
|
# Here we are going to setup a dict of values to export
|
||||||
export_args = {}
|
export_args = {}
|
||||||
|
|||||||
@@ -32,7 +32,7 @@ options:
|
|||||||
type: str
|
type: str
|
||||||
inventory:
|
inventory:
|
||||||
description:
|
description:
|
||||||
- Inventory the group should be made a member of.
|
- Inventory name, ID, or named URL that the group should be made a member of.
|
||||||
required: True
|
required: True
|
||||||
type: str
|
type: str
|
||||||
variables:
|
variables:
|
||||||
@@ -41,12 +41,12 @@ options:
|
|||||||
type: dict
|
type: dict
|
||||||
hosts:
|
hosts:
|
||||||
description:
|
description:
|
||||||
- List of hosts that should be put in this group.
|
- List of host names, IDs, or named URLs that should be put in this group.
|
||||||
type: list
|
type: list
|
||||||
elements: str
|
elements: str
|
||||||
children:
|
children:
|
||||||
description:
|
description:
|
||||||
- List of groups that should be nested inside in this group.
|
- List of groups names, IDs, or named URLs that should be nested inside in this group.
|
||||||
type: list
|
type: list
|
||||||
elements: str
|
elements: str
|
||||||
aliases:
|
aliases:
|
||||||
|
|||||||
@@ -36,7 +36,7 @@ options:
|
|||||||
type: str
|
type: str
|
||||||
inventory:
|
inventory:
|
||||||
description:
|
description:
|
||||||
- Inventory the host should be made a member of.
|
- Inventory name, ID, or named URL the host should be made a member of.
|
||||||
required: True
|
required: True
|
||||||
type: str
|
type: str
|
||||||
enabled:
|
enabled:
|
||||||
|
|||||||
@@ -33,7 +33,7 @@ options:
|
|||||||
type: str
|
type: str
|
||||||
credential:
|
credential:
|
||||||
description:
|
description:
|
||||||
- Credential to authenticate with Kubernetes or OpenShift. Must be of type "OpenShift or Kubernetes API Bearer Token".
|
- Credential name, ID, or named URL to authenticate with Kubernetes or OpenShift. Must be of type "OpenShift or Kubernetes API Bearer Token".
|
||||||
required: False
|
required: False
|
||||||
type: str
|
type: str
|
||||||
is_container_group:
|
is_container_group:
|
||||||
@@ -74,7 +74,7 @@ options:
|
|||||||
type: str
|
type: str
|
||||||
instances:
|
instances:
|
||||||
description:
|
description:
|
||||||
- The instances associated with this instance_group
|
- The instance names, IDs, or named URLs associated with this instance_group
|
||||||
required: False
|
required: False
|
||||||
type: list
|
type: list
|
||||||
elements: str
|
elements: str
|
||||||
|
|||||||
@@ -44,7 +44,7 @@ options:
|
|||||||
type: str
|
type: str
|
||||||
organization:
|
organization:
|
||||||
description:
|
description:
|
||||||
- Organization the inventory belongs to.
|
- Organization name, ID, or named URL the inventory belongs to.
|
||||||
required: True
|
required: True
|
||||||
type: str
|
type: str
|
||||||
variables:
|
variables:
|
||||||
@@ -62,12 +62,12 @@ options:
|
|||||||
type: str
|
type: str
|
||||||
instance_groups:
|
instance_groups:
|
||||||
description:
|
description:
|
||||||
- list of Instance Groups for this Organization to run on.
|
- list of Instance Group names, IDs, or named URLs for this Organization to run on.
|
||||||
type: list
|
type: list
|
||||||
elements: str
|
elements: str
|
||||||
input_inventories:
|
input_inventories:
|
||||||
description:
|
description:
|
||||||
- List of Inventories to use as input for Constructed Inventory.
|
- List of Inventory names, IDs, or named URLs to use as input for Constructed Inventory.
|
||||||
type: list
|
type: list
|
||||||
elements: str
|
elements: str
|
||||||
prevent_instance_group_fallback:
|
prevent_instance_group_fallback:
|
||||||
|
|||||||
@@ -36,7 +36,7 @@ options:
|
|||||||
type: str
|
type: str
|
||||||
inventory:
|
inventory:
|
||||||
description:
|
description:
|
||||||
- Inventory the group should be made a member of.
|
- Inventory name, ID, or named URL the group should be made a member of.
|
||||||
required: True
|
required: True
|
||||||
type: str
|
type: str
|
||||||
source:
|
source:
|
||||||
@@ -70,11 +70,11 @@ options:
|
|||||||
type: str
|
type: str
|
||||||
credential:
|
credential:
|
||||||
description:
|
description:
|
||||||
- Credential to use for the source.
|
- Credential name, ID, or named URL to use for the source.
|
||||||
type: str
|
type: str
|
||||||
execution_environment:
|
execution_environment:
|
||||||
description:
|
description:
|
||||||
- Execution Environment to use for the source.
|
- Execution Environment name, ID, or named URL to use for the source.
|
||||||
type: str
|
type: str
|
||||||
custom_virtualenv:
|
custom_virtualenv:
|
||||||
description:
|
description:
|
||||||
@@ -107,7 +107,7 @@ options:
|
|||||||
type: int
|
type: int
|
||||||
source_project:
|
source_project:
|
||||||
description:
|
description:
|
||||||
- Project to use as source with scm option
|
- Project name, ID, or named URL to use as source with scm option
|
||||||
type: str
|
type: str
|
||||||
scm_branch:
|
scm_branch:
|
||||||
description:
|
description:
|
||||||
|
|||||||
@@ -35,7 +35,7 @@ options:
|
|||||||
type: str
|
type: str
|
||||||
organization:
|
organization:
|
||||||
description:
|
description:
|
||||||
- Name of the inventory source's inventory's organization.
|
- Name, ID, or named URL of the inventory source's inventory's organization.
|
||||||
type: str
|
type: str
|
||||||
wait:
|
wait:
|
||||||
description:
|
description:
|
||||||
|
|||||||
@@ -34,17 +34,17 @@ options:
|
|||||||
type: str
|
type: str
|
||||||
inventory:
|
inventory:
|
||||||
description:
|
description:
|
||||||
- Inventory to use for the job, only used if prompt for inventory is set.
|
- Inventory name, ID, or named URL to use for the job, only used if prompt for inventory is set.
|
||||||
type: str
|
type: str
|
||||||
organization:
|
organization:
|
||||||
description:
|
description:
|
||||||
- Organization the job template exists in.
|
- Organization name, ID, or named URL the 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.
|
||||||
type: str
|
type: str
|
||||||
credentials:
|
credentials:
|
||||||
description:
|
description:
|
||||||
- Credential to use for job, only used if prompt for credential is set.
|
- Credential names, IDs, or named URLs to use for job, only used if prompt for credential is set.
|
||||||
type: list
|
type: list
|
||||||
aliases: ['credential']
|
aliases: ['credential']
|
||||||
elements: str
|
elements: str
|
||||||
@@ -88,7 +88,7 @@ options:
|
|||||||
type: dict
|
type: dict
|
||||||
execution_environment:
|
execution_environment:
|
||||||
description:
|
description:
|
||||||
- Execution environment to use for the job, only used if prompt for execution environment is set.
|
- Execution environment name, ID, or named URL to use for the job, only used if prompt for execution environment is set.
|
||||||
type: str
|
type: str
|
||||||
forks:
|
forks:
|
||||||
description:
|
description:
|
||||||
@@ -96,7 +96,7 @@ options:
|
|||||||
type: int
|
type: int
|
||||||
instance_groups:
|
instance_groups:
|
||||||
description:
|
description:
|
||||||
- Instance groups to use for the job, only used if prompt for instance groups is set.
|
- Instance group names, IDs, or named URLs to use for the job, only used if prompt for instance groups is set.
|
||||||
type: list
|
type: list
|
||||||
elements: str
|
elements: str
|
||||||
job_slice_count:
|
job_slice_count:
|
||||||
|
|||||||
@@ -49,11 +49,11 @@ options:
|
|||||||
type: str
|
type: str
|
||||||
inventory:
|
inventory:
|
||||||
description:
|
description:
|
||||||
- Name of the inventory to use for the job template.
|
- Name, ID, or named URL of the inventory to use for the job template.
|
||||||
type: str
|
type: str
|
||||||
organization:
|
organization:
|
||||||
description:
|
description:
|
||||||
- Organization the job template exists in.
|
- Organization name, ID, or named URL the 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.
|
||||||
- The Organization is inferred from the associated project
|
- The Organization is inferred from the associated project
|
||||||
- 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.
|
||||||
@@ -61,7 +61,7 @@ options:
|
|||||||
type: str
|
type: str
|
||||||
project:
|
project:
|
||||||
description:
|
description:
|
||||||
- Name of the project to use for the job template.
|
- Name, ID, or named URL of the project to use for the job template.
|
||||||
type: str
|
type: str
|
||||||
playbook:
|
playbook:
|
||||||
description:
|
description:
|
||||||
@@ -69,22 +69,22 @@ options:
|
|||||||
type: str
|
type: str
|
||||||
credential:
|
credential:
|
||||||
description:
|
description:
|
||||||
- Name of the credential to use for the job template.
|
- Name, ID, or named URL of the credential to use for the job template.
|
||||||
- Deprecated, use 'credentials'.
|
- Deprecated, use 'credentials'.
|
||||||
type: str
|
type: str
|
||||||
credentials:
|
credentials:
|
||||||
description:
|
description:
|
||||||
- List of credentials to use for the job template.
|
- List of credential names, IDs, or named URLs to use for the job template.
|
||||||
type: list
|
type: list
|
||||||
elements: str
|
elements: str
|
||||||
vault_credential:
|
vault_credential:
|
||||||
description:
|
description:
|
||||||
- Name of the vault credential to use for the job template.
|
- Name, ID, or named URL of the vault credential to use for the job template.
|
||||||
- Deprecated, use 'credentials'.
|
- Deprecated, use 'credentials'.
|
||||||
type: str
|
type: str
|
||||||
execution_environment:
|
execution_environment:
|
||||||
description:
|
description:
|
||||||
- Execution Environment to use for the job template.
|
- Execution Environment name, ID, or named URL to use for the job template.
|
||||||
type: str
|
type: str
|
||||||
custom_virtualenv:
|
custom_virtualenv:
|
||||||
description:
|
description:
|
||||||
@@ -94,7 +94,7 @@ options:
|
|||||||
type: str
|
type: str
|
||||||
instance_groups:
|
instance_groups:
|
||||||
description:
|
description:
|
||||||
- list of Instance Groups for this Organization to run on.
|
- list of Instance Group names, IDs, or named URLs for this Organization to run on.
|
||||||
type: list
|
type: list
|
||||||
elements: str
|
elements: str
|
||||||
forks:
|
forks:
|
||||||
|
|||||||
@@ -34,7 +34,7 @@ options:
|
|||||||
type: str
|
type: str
|
||||||
organization:
|
organization:
|
||||||
description:
|
description:
|
||||||
- Organization this label belongs to.
|
- Organization name, ID, or named URL this label belongs to.
|
||||||
required: True
|
required: True
|
||||||
type: str
|
type: str
|
||||||
state:
|
state:
|
||||||
|
|||||||
@@ -44,7 +44,7 @@ options:
|
|||||||
type: str
|
type: str
|
||||||
organization:
|
organization:
|
||||||
description:
|
description:
|
||||||
- The organization the notification belongs to.
|
- The organization name, ID, or named URL the notification belongs to.
|
||||||
type: str
|
type: str
|
||||||
notification_type:
|
notification_type:
|
||||||
description:
|
description:
|
||||||
|
|||||||
@@ -36,7 +36,7 @@ options:
|
|||||||
type: str
|
type: str
|
||||||
default_environment:
|
default_environment:
|
||||||
description:
|
description:
|
||||||
- Default Execution Environment to use for jobs owned by the Organization.
|
- Default Execution Environment name, ID, or named URL to use for jobs owned by the Organization.
|
||||||
type: str
|
type: str
|
||||||
custom_virtualenv:
|
custom_virtualenv:
|
||||||
description:
|
description:
|
||||||
@@ -56,7 +56,7 @@ options:
|
|||||||
type: str
|
type: str
|
||||||
instance_groups:
|
instance_groups:
|
||||||
description:
|
description:
|
||||||
- list of Instance Groups for this Organization to run on.
|
- list of Instance Group names, IDs, or named URLs for this Organization to run on.
|
||||||
type: list
|
type: list
|
||||||
elements: str
|
elements: str
|
||||||
notification_templates_started:
|
notification_templates_started:
|
||||||
@@ -81,7 +81,7 @@ options:
|
|||||||
elements: str
|
elements: str
|
||||||
galaxy_credentials:
|
galaxy_credentials:
|
||||||
description:
|
description:
|
||||||
- list of Ansible Galaxy credentials to associate to the organization
|
- list of Ansible Galaxy credential names, IDs, or named URLs to associate to the organization
|
||||||
type: list
|
type: list
|
||||||
elements: str
|
elements: str
|
||||||
extends_documentation_fragment: awx.awx.auth
|
extends_documentation_fragment: awx.awx.auth
|
||||||
|
|||||||
@@ -65,7 +65,7 @@ options:
|
|||||||
type: str
|
type: str
|
||||||
credential:
|
credential:
|
||||||
description:
|
description:
|
||||||
- Name of the credential to use with this SCM resource.
|
- Name, ID, or named URL of the credential to use with this SCM resource.
|
||||||
type: str
|
type: str
|
||||||
aliases:
|
aliases:
|
||||||
- scm_credential
|
- scm_credential
|
||||||
@@ -106,7 +106,7 @@ options:
|
|||||||
- job_timeout
|
- job_timeout
|
||||||
default_environment:
|
default_environment:
|
||||||
description:
|
description:
|
||||||
- Default Execution Environment to use for jobs relating to the project.
|
- Default Execution Environment name, ID, or named URL to use for jobs relating to the project.
|
||||||
type: str
|
type: str
|
||||||
custom_virtualenv:
|
custom_virtualenv:
|
||||||
description:
|
description:
|
||||||
@@ -116,7 +116,7 @@ options:
|
|||||||
type: str
|
type: str
|
||||||
organization:
|
organization:
|
||||||
description:
|
description:
|
||||||
- Name of organization for project.
|
- Name, ID, or named URL of organization for the project.
|
||||||
type: str
|
type: str
|
||||||
state:
|
state:
|
||||||
description:
|
description:
|
||||||
@@ -162,7 +162,7 @@ options:
|
|||||||
type: float
|
type: float
|
||||||
signature_validation_credential:
|
signature_validation_credential:
|
||||||
description:
|
description:
|
||||||
- Name of the credential to use for signature validation.
|
- Name, ID, or named URL of the credential to use for signature validation.
|
||||||
- If signature validation credential is provided, signature validation will be enabled.
|
- If signature validation credential is provided, signature validation will be enabled.
|
||||||
type: str
|
type: str
|
||||||
|
|
||||||
|
|||||||
@@ -27,7 +27,7 @@ options:
|
|||||||
- project
|
- project
|
||||||
organization:
|
organization:
|
||||||
description:
|
description:
|
||||||
- Organization the project exists in.
|
- Organization name, ID, or named URL the project 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.
|
||||||
type: str
|
type: str
|
||||||
|
|||||||
@@ -23,22 +23,22 @@ description:
|
|||||||
options:
|
options:
|
||||||
user:
|
user:
|
||||||
description:
|
description:
|
||||||
- User that receives the permissions specified by the role.
|
- User name, ID, or named URL that receives the permissions specified by the role.
|
||||||
- Deprecated, use 'users'.
|
- Deprecated, use 'users'.
|
||||||
type: str
|
type: str
|
||||||
users:
|
users:
|
||||||
description:
|
description:
|
||||||
- Users that receive the permissions specified by the role.
|
- User names, IDs, or named URLs that receive the permissions specified by the role.
|
||||||
type: list
|
type: list
|
||||||
elements: str
|
elements: str
|
||||||
team:
|
team:
|
||||||
description:
|
description:
|
||||||
- Team that receives the permissions specified by the role.
|
- Team name, ID, or named URL that receives the permissions specified by the role.
|
||||||
- Deprecated, use 'teams'.
|
- Deprecated, use 'teams'.
|
||||||
type: str
|
type: str
|
||||||
teams:
|
teams:
|
||||||
description:
|
description:
|
||||||
- Teams that receive the permissions specified by the role.
|
- Team names, IDs, or named URLs that receive the permissions specified by the role.
|
||||||
type: list
|
type: list
|
||||||
elements: str
|
elements: str
|
||||||
role:
|
role:
|
||||||
@@ -50,87 +50,87 @@ options:
|
|||||||
type: str
|
type: str
|
||||||
target_team:
|
target_team:
|
||||||
description:
|
description:
|
||||||
- Team that the role acts on.
|
- Team name, ID, or named URL that the role acts on.
|
||||||
- For example, make someone a member or an admin of a team.
|
- For example, make someone a member or an admin of a team.
|
||||||
- Members of a team implicitly receive the permissions that the team has.
|
- Members of a team implicitly receive the permissions that the team has.
|
||||||
- Deprecated, use 'target_teams'.
|
- Deprecated, use 'target_teams'.
|
||||||
type: str
|
type: str
|
||||||
target_teams:
|
target_teams:
|
||||||
description:
|
description:
|
||||||
- Team that the role acts on.
|
- Team names, IDs, or named URLs that the role acts on.
|
||||||
- For example, make someone a member or an admin of a team.
|
- For example, make someone a member or an admin of a team.
|
||||||
- Members of a team implicitly receive the permissions that the team has.
|
- Members of a team implicitly receive the permissions that the team has.
|
||||||
type: list
|
type: list
|
||||||
elements: str
|
elements: str
|
||||||
inventory:
|
inventory:
|
||||||
description:
|
description:
|
||||||
- Inventory the role acts on.
|
- Inventory name, ID, or named URL the role acts on.
|
||||||
- Deprecated, use 'inventories'.
|
- Deprecated, use 'inventories'.
|
||||||
type: str
|
type: str
|
||||||
inventories:
|
inventories:
|
||||||
description:
|
description:
|
||||||
- Inventory the role acts on.
|
- Inventory names, IDs, or named URLs the role acts on.
|
||||||
type: list
|
type: list
|
||||||
elements: str
|
elements: str
|
||||||
job_template:
|
job_template:
|
||||||
description:
|
description:
|
||||||
- The job template the role acts on.
|
- The job template name, ID, or named URL the role acts on.
|
||||||
- Deprecated, use 'job_templates'.
|
- Deprecated, use 'job_templates'.
|
||||||
type: str
|
type: str
|
||||||
job_templates:
|
job_templates:
|
||||||
description:
|
description:
|
||||||
- The job template the role acts on.
|
- The job template names, IDs, or named URLs the role acts on.
|
||||||
type: list
|
type: list
|
||||||
elements: str
|
elements: str
|
||||||
workflow:
|
workflow:
|
||||||
description:
|
description:
|
||||||
- The workflow job template the role acts on.
|
- The workflow job template name, ID, or named URL the role acts on.
|
||||||
- Deprecated, use 'workflows'.
|
- Deprecated, use 'workflows'.
|
||||||
type: str
|
type: str
|
||||||
workflows:
|
workflows:
|
||||||
description:
|
description:
|
||||||
- The workflow job template the role acts on.
|
- The workflow job template names, IDs, or named URLs the role acts on.
|
||||||
type: list
|
type: list
|
||||||
elements: str
|
elements: str
|
||||||
credential:
|
credential:
|
||||||
description:
|
description:
|
||||||
- Credential the role acts on.
|
- Credential name, ID, or named URL the role acts on.
|
||||||
- Deprecated, use 'credentials'.
|
- Deprecated, use 'credentials'.
|
||||||
type: str
|
type: str
|
||||||
credentials:
|
credentials:
|
||||||
description:
|
description:
|
||||||
- Credential the role acts on.
|
- Credential names, IDs, or named URLs the role acts on.
|
||||||
type: list
|
type: list
|
||||||
elements: str
|
elements: str
|
||||||
organization:
|
organization:
|
||||||
description:
|
description:
|
||||||
- Organization the role acts on.
|
- Organization name, ID, or named URL the role acts on.
|
||||||
- Deprecated, use 'organizations'.
|
- Deprecated, use 'organizations'.
|
||||||
type: str
|
type: str
|
||||||
organizations:
|
organizations:
|
||||||
description:
|
description:
|
||||||
- Organization the role acts on.
|
- Organization names, IDs, or named URLs the role acts on.
|
||||||
type: list
|
type: list
|
||||||
elements: str
|
elements: str
|
||||||
lookup_organization:
|
lookup_organization:
|
||||||
description:
|
description:
|
||||||
- Organization the inventories, job templates, projects, or workflows the items exists in.
|
- Organization name, ID, or named URL the inventories, job templates, projects, or workflows the items exists in.
|
||||||
- Used to help lookup the object, for organization roles see organization.
|
- Used to help lookup the object, for organization roles see organization.
|
||||||
- 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.
|
||||||
type: str
|
type: str
|
||||||
project:
|
project:
|
||||||
description:
|
description:
|
||||||
- Project the role acts on.
|
- Project name, ID, or named URL the role acts on.
|
||||||
- Deprecated, use 'projects'.
|
- Deprecated, use 'projects'.
|
||||||
type: str
|
type: str
|
||||||
projects:
|
projects:
|
||||||
description:
|
description:
|
||||||
- Project the role acts on.
|
- Project names, IDs, or named URLs the role acts on.
|
||||||
type: list
|
type: list
|
||||||
elements: str
|
elements: str
|
||||||
instance_groups:
|
instance_groups:
|
||||||
description:
|
description:
|
||||||
- Instance Group the role acts on.
|
- Instance Group names, IDs, or named URLs the role acts on.
|
||||||
type: list
|
type: list
|
||||||
elements: str
|
elements: str
|
||||||
state:
|
state:
|
||||||
@@ -266,7 +266,7 @@ def main():
|
|||||||
resource_data = {}
|
resource_data = {}
|
||||||
for key, value in resources.items():
|
for key, value in resources.items():
|
||||||
for resource in value:
|
for resource in value:
|
||||||
# Attempt to look up project based on the provided name or ID and lookup data
|
# Attempt to look up project based on the provided name, ID, or named URL and lookup data
|
||||||
lookup_key = key
|
lookup_key = key
|
||||||
if key == 'organizations' or key == 'users':
|
if key == 'organizations' or key == 'users':
|
||||||
lookup_data_populated = {}
|
lookup_data_populated = {}
|
||||||
|
|||||||
@@ -44,7 +44,7 @@ options:
|
|||||||
type: str
|
type: str
|
||||||
execution_environment:
|
execution_environment:
|
||||||
description:
|
description:
|
||||||
- Execution Environment applied as a prompt, assuming jot template prompts for execution environment
|
- Execution Environment name, ID, or named URL applied as a prompt, assuming job template prompts for execution environment
|
||||||
type: str
|
type: str
|
||||||
extra_data:
|
extra_data:
|
||||||
description:
|
description:
|
||||||
@@ -57,12 +57,12 @@ options:
|
|||||||
type: int
|
type: int
|
||||||
instance_groups:
|
instance_groups:
|
||||||
description:
|
description:
|
||||||
- List of Instance Groups applied as a prompt, assuming job template prompts for instance groups
|
- List of Instance Group names, IDs, or named URLs applied as a prompt, assuming job template prompts for instance groups
|
||||||
type: list
|
type: list
|
||||||
elements: str
|
elements: str
|
||||||
inventory:
|
inventory:
|
||||||
description:
|
description:
|
||||||
- Inventory applied as a prompt, assuming job template prompts for inventory
|
- Inventory name, ID, or named URL applied as a prompt, assuming job template prompts for inventory
|
||||||
required: False
|
required: False
|
||||||
type: str
|
type: str
|
||||||
job_slice_count:
|
job_slice_count:
|
||||||
@@ -76,7 +76,7 @@ options:
|
|||||||
elements: str
|
elements: str
|
||||||
credentials:
|
credentials:
|
||||||
description:
|
description:
|
||||||
- List of credentials applied as a prompt, assuming job template prompts for credentials
|
- List of credential names, IDs, or named URLs applied as a prompt, assuming job template prompts for credentials
|
||||||
type: list
|
type: list
|
||||||
elements: str
|
elements: str
|
||||||
scm_branch:
|
scm_branch:
|
||||||
@@ -130,12 +130,12 @@ options:
|
|||||||
- 5
|
- 5
|
||||||
unified_job_template:
|
unified_job_template:
|
||||||
description:
|
description:
|
||||||
- Name of unified job template to schedule. Used to look up an already existing schedule.
|
- Name, ID, or named URL of unified job template to schedule. Used to look up an already existing schedule.
|
||||||
required: False
|
required: False
|
||||||
type: str
|
type: str
|
||||||
organization:
|
organization:
|
||||||
description:
|
description:
|
||||||
- The organization the unified job template exists in.
|
- The organization name, ID, or named URL the unified job template exists in.
|
||||||
- Used for looking up the unified job template, not a direct model field.
|
- Used for looking up the unified job template, not a direct model field.
|
||||||
type: str
|
type: str
|
||||||
enabled:
|
enabled:
|
||||||
|
|||||||
@@ -36,7 +36,7 @@ options:
|
|||||||
type: str
|
type: str
|
||||||
organization:
|
organization:
|
||||||
description:
|
description:
|
||||||
- Organization the team should be made a member of.
|
- Organization name, ID, or named URL the team should be made a member of.
|
||||||
required: True
|
required: True
|
||||||
type: str
|
type: str
|
||||||
state:
|
state:
|
||||||
|
|||||||
@@ -37,7 +37,7 @@ options:
|
|||||||
type: str
|
type: str
|
||||||
application:
|
application:
|
||||||
description:
|
description:
|
||||||
- The application tied to this token.
|
- The application name, ID, or named URL tied to this token.
|
||||||
required: False
|
required: False
|
||||||
type: str
|
type: str
|
||||||
scope:
|
scope:
|
||||||
|
|||||||
@@ -44,7 +44,7 @@ options:
|
|||||||
type: str
|
type: str
|
||||||
organization:
|
organization:
|
||||||
description:
|
description:
|
||||||
- The user will be created as a member of that organization (needed for organization admins to create new organization users).
|
- The user will be created as a member of that organization name, ID, or named URL (needed for organization admins to create new organization users).
|
||||||
type: str
|
type: str
|
||||||
is_superuser:
|
is_superuser:
|
||||||
description:
|
description:
|
||||||
|
|||||||
@@ -58,7 +58,7 @@ options:
|
|||||||
- ask_tags
|
- ask_tags
|
||||||
organization:
|
organization:
|
||||||
description:
|
description:
|
||||||
- Organization the workflow job template exists in.
|
- Organization name, ID, or named URL 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.
|
||||||
type: str
|
type: str
|
||||||
@@ -72,7 +72,7 @@ options:
|
|||||||
type: bool
|
type: bool
|
||||||
inventory:
|
inventory:
|
||||||
description:
|
description:
|
||||||
- Inventory applied as a prompt, assuming job template prompts for inventory
|
- Name, ID, or named URL of inventory applied as a prompt, assuming job template prompts for inventory
|
||||||
type: str
|
type: str
|
||||||
limit:
|
limit:
|
||||||
description:
|
description:
|
||||||
|
|||||||
@@ -31,7 +31,7 @@ options:
|
|||||||
type: dict
|
type: dict
|
||||||
inventory:
|
inventory:
|
||||||
description:
|
description:
|
||||||
- Inventory applied as a prompt, if job template prompts for inventory
|
- Name, ID, or named URL of the Inventory applied as a prompt, if job template prompts for inventory
|
||||||
type: str
|
type: str
|
||||||
scm_branch:
|
scm_branch:
|
||||||
description:
|
description:
|
||||||
@@ -73,7 +73,7 @@ options:
|
|||||||
- '5'
|
- '5'
|
||||||
workflow_job_template:
|
workflow_job_template:
|
||||||
description:
|
description:
|
||||||
- The workflow job template the node exists in.
|
- The workflow job template name, ID, or named URL the node exists in.
|
||||||
- Used for looking up the node, cannot be modified after creation.
|
- Used for looking up the node, cannot be modified after creation.
|
||||||
required: True
|
required: True
|
||||||
type: str
|
type: str
|
||||||
@@ -81,7 +81,7 @@ options:
|
|||||||
- workflow
|
- workflow
|
||||||
organization:
|
organization:
|
||||||
description:
|
description:
|
||||||
- The organization of the workflow job template the node exists in.
|
- The organization name, ID, or named URL of the workflow job template the node exists in.
|
||||||
- Used for looking up the workflow, not a direct model field.
|
- Used for looking up the workflow, not a direct model field.
|
||||||
type: str
|
type: str
|
||||||
unified_job_template:
|
unified_job_template:
|
||||||
@@ -93,7 +93,7 @@ options:
|
|||||||
type: str
|
type: str
|
||||||
lookup_organization:
|
lookup_organization:
|
||||||
description:
|
description:
|
||||||
- Organization the inventories, job template, project, inventory source the unified_job_template exists in.
|
- Organization name, ID, or named URL the inventories, job template, project, inventory source the unified_job_template exists in.
|
||||||
- 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.
|
||||||
type: str
|
type: str
|
||||||
approval_node:
|
approval_node:
|
||||||
@@ -145,14 +145,14 @@ options:
|
|||||||
elements: str
|
elements: str
|
||||||
credentials:
|
credentials:
|
||||||
description:
|
description:
|
||||||
- Credentials to be applied to job as launch-time prompts.
|
- Credential names, IDs, or named URLs to be applied to job as launch-time prompts.
|
||||||
- List of credential names.
|
- List of credential names, IDs, or named URLs.
|
||||||
- Uniqueness is not handled rigorously.
|
- Uniqueness is not handled rigorously.
|
||||||
type: list
|
type: list
|
||||||
elements: str
|
elements: str
|
||||||
execution_environment:
|
execution_environment:
|
||||||
description:
|
description:
|
||||||
- Execution Environment applied as a prompt, assuming jot template prompts for execution environment
|
- Execution Environment name, ID, or named URL applied as a prompt, assuming job template prompts for execution environment
|
||||||
type: str
|
type: str
|
||||||
forks:
|
forks:
|
||||||
description:
|
description:
|
||||||
@@ -160,7 +160,7 @@ options:
|
|||||||
type: int
|
type: int
|
||||||
instance_groups:
|
instance_groups:
|
||||||
description:
|
description:
|
||||||
- List of Instance Groups applied as a prompt, assuming job template prompts for instance groups
|
- List of Instance Group names, IDs, or named URLs applied as a prompt, assuming job template prompts for instance groups
|
||||||
type: list
|
type: list
|
||||||
elements: str
|
elements: str
|
||||||
job_slice_count:
|
job_slice_count:
|
||||||
|
|||||||
@@ -27,13 +27,13 @@ options:
|
|||||||
- workflow_template
|
- workflow_template
|
||||||
organization:
|
organization:
|
||||||
description:
|
description:
|
||||||
- Organization the workflow job template exists in.
|
- Organization name, ID, or named URL 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.
|
||||||
type: str
|
type: str
|
||||||
inventory:
|
inventory:
|
||||||
description:
|
description:
|
||||||
- Inventory to use for the job ran with this workflow, only used if prompt for inventory is set.
|
- Inventory name, ID, or named URL to use for the job ran with this workflow, only used if prompt for inventory is set.
|
||||||
type: str
|
type: str
|
||||||
limit:
|
limit:
|
||||||
description:
|
description:
|
||||||
|
|||||||
Reference in New Issue
Block a user