Clean up module documentation (#36909)

* Clean up module documentation

This PR includes:
- Removal of `default: None` (and variations)
- Removal of `required: false`
- Fixing booleans and `type: bool` where required

* Fix remaining (new) validation issues
This commit is contained in:
Dag Wieers
2018-03-15 22:15:24 +01:00
committed by AlanCoding
parent 3e8de196ac
commit 0b26297177
14 changed files with 38 additions and 184 deletions

View File

@@ -33,23 +33,15 @@ options:
user: user:
description: description:
- User that should own this credential. - User that should own this credential.
required: False
default: null
team: team:
description: description:
- Team that should own this credential. - Team that should own this credential.
required: False
default: null
project: project:
description: description:
- Project that should for this credential. - Project that should for this credential.
required: False
default: null
organization: organization:
description: description:
- Organization that should own the credential. - Organization that should own the credential.
required: False
default: null
kind: kind:
description: description:
- Type of credential being added. - Type of credential being added.
@@ -58,86 +50,59 @@ options:
host: host:
description: description:
- Host for this credential. - Host for this credential.
required: False
default: null
username: username:
description: description:
- Username for this credential. access_key for AWS. - Username for this credential. access_key for AWS.
required: False
default: null
password: password:
description: description:
- Password for this credential. Use ASK for prompting. secret_key for AWS. api_key for RAX. - Password for this credential. Use ASK for prompting. secret_key for AWS. api_key for RAX.
required: False
default: null
ssh_key_data: ssh_key_data:
description: description:
- Path to SSH private key. - Path to SSH private key.
required: False
default: null
ssh_key_unlock: ssh_key_unlock:
description: description:
- Unlock password for ssh_key. Use ASK for prompting. - Unlock password for ssh_key. Use ASK for prompting.
authorize: authorize:
description: description:
- Should use authorize for net type. - Should use authorize for net type.
required: False type: bool
default: False default: 'no'
authorize_password: authorize_password:
description: description:
- Password for net credentials that require authorize. - Password for net credentials that require authorize.
required: False
default: null
client: client:
description: description:
- Client or application ID for azure_rm type. - Client or application ID for azure_rm type.
required: False
default: null
secret: secret:
description: description:
- Secret token for azure_rm type. - Secret token for azure_rm type.
required: False
default: null
subscription: subscription:
description: description:
- Subscription ID for azure_rm type. - Subscription ID for azure_rm type.
required: False
default: null
tenant: tenant:
description: description:
- Tenant ID for azure_rm type. - Tenant ID for azure_rm type.
required: False
default: null
domain: domain:
description: description:
- Domain for openstack type. - Domain for openstack type.
required: False
default: null
become_method: become_method:
description: description:
- Become method to Use for privledge escalation. - Become method to Use for privledge escalation.
required: False
choices: ["None", "sudo", "su", "pbrun", "pfexec", "pmrun"] choices: ["None", "sudo", "su", "pbrun", "pfexec", "pmrun"]
default: "None"
become_username: become_username:
description: description:
- Become username. Use ASK for prompting. - Become username. Use ASK for prompting.
required: False
default: null
become_password: become_password:
description: description:
- Become password. Use ASK for prompting. - Become password. Use ASK for prompting.
required: False
default: null
vault_password: vault_password:
description: description:
- Valut password. Use ASK for prompting. - Valut password. Use ASK for prompting.
state: state:
description: description:
- Desired state of the resource. - Desired state of the resource.
required: False
default: "present"
choices: ["present", "absent"] choices: ["present", "absent"]
default: "present"
extends_documentation_fragment: tower extends_documentation_fragment: tower
''' '''

View File

@@ -30,8 +30,6 @@ options:
description: description:
description: description:
- The description to use for the group. - The description to use for the group.
required: False
default: null
inventory: inventory:
description: description:
- Inventory the group should be made a member of. - Inventory the group should be made a member of.
@@ -39,63 +37,44 @@ options:
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.
required: False
default: null
credential: credential:
description: description:
- Credential to use for the group. - Credential to use for the group.
required: False
default: null
source: source:
description: description:
- The source to use for this group. - The source to use for this group.
required: False
default: null,
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"]
source_regions: source_regions:
description: description:
- Regions for cloud provider. - Regions for cloud provider.
required: False
default: null
source_vars: source_vars:
description: description:
- Override variables from source with variables from this field. - Override variables from source with variables from this field.
required: False
default: null
instance_filters: instance_filters:
description: description:
- Comma-separated list of filter expressions for matching hosts. - Comma-separated list of filter expressions for matching hosts.
required: False
default: null
group_by: group_by:
description: description:
- Limit groups automatically created from inventory source. - Limit groups automatically created from inventory source.
required: False
default: null
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).
required: False
default: null
overwrite: overwrite:
description: description:
- Delete child groups and hosts not found in source. - Delete child groups and hosts not found in source.
required: False type: bool
default: False default: 'no'
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.
required: False
default: null
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.
required: False type: bool
default: False default: 'no'
state: state:
description: description:
- Desired state of the resource. - Desired state of the resource.
required: False
default: "present" default: "present"
choices: ["present", "absent"] choices: ["present", "absent"]
extends_documentation_fragment: tower extends_documentation_fragment: tower

View File

@@ -30,8 +30,6 @@ options:
description: description:
description: description:
- The description to use for the host. - The description to use for the host.
required: False
default: null
inventory: inventory:
description: description:
- Inventory the host should be made a member of. - Inventory the host should be made a member of.
@@ -39,17 +37,16 @@ options:
enabled: enabled:
description: description:
- If the host should be enabled. - If the host should be enabled.
required: False type: bool
default: True default: 'yes'
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.
state: state:
description: description:
- Desired state of the resource. - Desired state of the resource.
required: False
default: "present"
choices: ["present", "absent"] choices: ["present", "absent"]
default: "present"
extends_documentation_fragment: tower extends_documentation_fragment: tower
''' '''

View File

@@ -30,8 +30,6 @@ options:
description: description:
description: description:
- The description to use for the inventory. - The description to use for the inventory.
required: False
default: null
organization: organization:
description: description:
- Organization the inventory belongs to. - Organization the inventory belongs to.
@@ -39,12 +37,9 @@ options:
variables: variables:
description: description:
- Inventory variables. Use C(@) to get from file. - Inventory variables. Use C(@) to get from file.
required: False
default: null
state: state:
description: description:
- Desired state of the resource. - Desired state of the resource.
required: False
default: "present" default: "present"
choices: ["present", "absent"] choices: ["present", "absent"]
extends_documentation_fragment: tower extends_documentation_fragment: tower

View File

@@ -30,36 +30,30 @@ options:
job_explanation: job_explanation:
description: description:
- Job explanation field. - Job explanation field.
default: null
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"]
default: null
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.
default: null
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.
default: null
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.
default: null
limit: limit:
description: description:
- Limit to use for the I(job_template). - Limit to use for the I(job_template).
default: null
tags: tags:
description: description:
- Specific tags to use for from playbook. - Specific tags to use for from playbook.
default: null
use_job_endpoint: use_job_endpoint:
description: description:
- Disable launching jobs from job template. - Disable launching jobs from job template.
default: False type: bool
default: 'no'
extends_documentation_fragment: tower extends_documentation_fragment: tower
''' '''

View File

@@ -26,20 +26,18 @@ options:
status: status:
description: description:
- Only list jobs with this status. - Only list jobs with this status.
default: null
choices: ['pending', 'waiting', 'running', 'error', 'failed', 'canceled', 'successful'] choices: ['pending', 'waiting', 'running', 'error', 'failed', 'canceled', 'successful']
page: page:
description: description:
- Page number of the results to fetch. - Page number of the results to fetch.
default: null
all_pages: all_pages:
description: description:
- Fetch all the pages and return a single result. - Fetch all the pages and return a single result.
default: False type: bool
default: 'no'
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)
default: null
extends_documentation_fragment: tower extends_documentation_fragment: tower
''' '''

View File

@@ -30,8 +30,6 @@ options:
description: description:
description: description:
- Description to use for the job template. - Description to use for the job template.
required: False
default: null
job_type: job_type:
description: description:
- The job_type to use for the job template. - The job_type to use for the job template.
@@ -40,8 +38,6 @@ options:
inventory: inventory:
description: description:
- Inventory to use for the job template. - Inventory to use for the job template.
required: False
default: null
project: project:
description: description:
- Project to use for the job template. - Project to use for the job template.
@@ -53,88 +49,67 @@ options:
machine_credential: machine_credential:
description: description:
- Machine_credential to use for the job template. - Machine_credential to use for the job template.
required: False
default: null
cloud_credential: cloud_credential:
description: description:
- Cloud_credential to use for the job template. - Cloud_credential to use for the job template.
required: False
default: null
network_credential: network_credential:
description: description:
- The network_credential to use for the job template. - The network_credential to use for the job template.
required: False
default: null
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.
required: False
default: null
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
required: False
default: null
verbosity: verbosity:
description: description:
- Control the output level Ansible produces as the playbook runs. - Control the output level Ansible produces as the playbook runs.
required: False
choices: ["verbose", "debug"] choices: ["verbose", "debug"]
default: null
job_tags: job_tags:
description: description:
- The job_tags to use for the job template. - The job_tags to use for the job template.
required: False
default: null
skip_tags: skip_tags:
description: description:
- The skip_tags to use for the job template. - The skip_tags to use for the job template.
required: False
default: null
host_config_key: host_config_key:
description: description:
- Allow provisioning callbacks using this host config key. - Allow provisioning callbacks using this host config key.
required: False
default: null
extra_vars_path: extra_vars_path:
description: description:
- Path to the C(extra_vars) YAML file. - Path to the C(extra_vars) YAML file.
required: False
default: null
ask_extra_vars: ask_extra_vars:
description: description:
- Prompt user for C(extra_vars) on launch. - Prompt user for C(extra_vars) on launch.
required: False type: bool
default: False default: 'no'
ask_tags: ask_tags:
description: description:
- Prompt user for job tags on launch. - Prompt user for job tags on launch.
required: False type: bool
default: False default: 'no'
ask_job_type: ask_job_type:
description: description:
- Prompt user for job type on launch. - Prompt user for job type on launch.
required: False type: bool
default: False default: 'no'
ask_inventory: ask_inventory:
description: description:
- Propmt user for inventory on launch. - Propmt user for inventory on launch.
required: False type: bool
default: False default: 'no'
ask_credential: ask_credential:
description: description:
- Prompt user for credential on launch. - Prompt user for credential on launch.
required: False type: bool
default: False default: 'no'
become_enabled: become_enabled:
description: description:
- Activate privilege escalation. - Activate privilege escalation.
required: False type: bool
default: False default: 'no'
state: state:
description: description:
- Desired state of the resource. - Desired state of the resource.
required: False
default: "present" default: "present"
choices: ["present", "absent"] choices: ["present", "absent"]
extends_documentation_fragment: tower extends_documentation_fragment: tower

View File

@@ -38,7 +38,6 @@ options:
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.
default: null
extends_documentation_fragment: tower extends_documentation_fragment: tower
''' '''

View File

@@ -27,16 +27,13 @@ options:
description: description:
- Name to use for the label. - Name to use for the label.
required: True required: True
default: null
organization: organization:
description: description:
- Organization the label should be applied to. - Organization the label should be applied to.
required: True required: True
default: null
state: state:
description: description:
- Desired state of the resource. - Desired state of the resource.
required: False
default: "present" default: "present"
choices: ["present", "absent"] choices: ["present", "absent"]
extends_documentation_fragment: tower extends_documentation_fragment: tower

View File

@@ -30,12 +30,9 @@ options:
description: description:
description: description:
- The description to use for the organization. - The description to use for the organization.
required: False
default: null
state: state:
description: description:
- Desired state of the resource. - Desired state of the resource.
required: False
default: "present" default: "present"
choices: ["present", "absent"] choices: ["present", "absent"]
extends_documentation_fragment: tower extends_documentation_fragment: tower

View File

@@ -27,62 +27,47 @@ options:
description: description:
- Name to use for the project. - Name to use for the project.
required: True required: True
default: null
description: description:
description: description:
- Description to use for the project. - Description to use for the project.
required: False
default: null
scm_type: scm_type:
description: description:
- Type of SCM resource. - Type of SCM resource.
required: False
default: "manual"
choices: ["manual", "git", "hg", "svn"] choices: ["manual", "git", "hg", "svn"]
default: "manual"
scm_url: scm_url:
description: description:
- URL of SCM resource. - URL of SCM resource.
required: False
default: null
local_path: local_path:
description: description:
- The server playbook directory for manual projects. - The server playbook directory for manual projects.
required: False
default: null
scm_branch: scm_branch:
description: description:
- The branch to use for the SCM resource. - The branch to use for the SCM resource.
required: False
default: null
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.
required: False
default: null
scm_clean: scm_clean:
description: description:
- Remove local modifications before updating. - Remove local modifications before updating.
required: False type: bool
default: False default: 'no'
scm_delete_on_update: scm_delete_on_update:
description: description:
- Remove the repository completely before updating. - Remove the repository completely before updating.
required: False type: bool
default: False default: 'no'
scm_update_on_launch: scm_update_on_launch:
description: description:
- Before an update to the local repository before launching a job with this project. - Before an update to the local repository before launching a job with this project.
required: False type: bool
default: False default: 'no'
organization: organization:
description: description:
- Primary key of organization for project. - Primary key of organization for project.
required: False
default: null
state: state:
description: description:
- Desired state of the resource. - Desired state of the resource.
required: False
default: "present" default: "present"
choices: ["present", "absent"] choices: ["present", "absent"]
extends_documentation_fragment: tower extends_documentation_fragment: tower

View File

@@ -26,13 +26,9 @@ options:
user: user:
description: description:
- User that receives the permissions specified by the role. - User that receives the permissions specified by the role.
required: False
default: null
team: team:
description: description:
- Team that receives the permissions specified by the role. - Team that receives the permissions specified by the role.
required: False
default: null
role: role:
description: description:
- The role type to grant/revoke. - The role type to grant/revoke.
@@ -41,37 +37,24 @@ options:
target_team: target_team:
description: description:
- Team that the role acts on. - Team that the role acts on.
required: False
default: null
inventory: inventory:
description: description:
- Inventory the role acts on. - Inventory the role acts on.
required: False
default: null
job_template: job_template:
description: description:
- The job template the role acts on. - The job template the role acts on.
required: False
default: null
credential: credential:
description: description:
- Credential the role acts on. - Credential the role acts on.
required: False
default: null
organization: organization:
description: description:
- Organization the role acts on. - Organization the role acts on.
required: False
default: null
project: project:
description: description:
- Project the role acts on. - Project the role acts on.
required: False
default: null
state: state:
description: description:
- Desired state of the resource. - Desired state of the resource.
required: False
default: "present" default: "present"
choices: ["present", "absent"] choices: ["present", "absent"]
extends_documentation_fragment: tower extends_documentation_fragment: tower

View File

@@ -27,18 +27,15 @@ options:
description: description:
- Name to use for the team. - Name to use for the team.
required: True required: True
default: null
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
default: null
state: state:
description: description:
- Desired state of the resource. - Desired state of the resource.
required: False
default: "present"
choices: ["present", "absent"] choices: ["present", "absent"]
default: "present"
extends_documentation_fragment: tower extends_documentation_fragment: tower
''' '''

View File

@@ -30,13 +30,9 @@ options:
first_name: first_name:
description: description:
- First name of the user. - First name of the user.
required: False
default: null
last_name: last_name:
description: description:
- Last name of the user. - Last name of the user.
required: False
default: null
email: email:
description: description:
- Email address of the user. - Email address of the user.
@@ -44,22 +40,19 @@ options:
password: password:
description: description:
- Password of the user. - Password of the user.
required: False
default: null
superuser: superuser:
description: description:
- User is a system wide administator. - User is a system wide administator.
required: False type: bool
default: False default: 'no'
auditor: auditor:
description: description:
- User is a system wide auditor. - User is a system wide auditor.
required: False type: bool
default: False default: 'no'
state: state:
description: description:
- Desired state of the resource. - Desired state of the resource.
required: False
default: "present" default: "present"
choices: ["present", "absent"] choices: ["present", "absent"]
extends_documentation_fragment: tower extends_documentation_fragment: tower