1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

Fix module issues (#52209)

This commit is contained in:
Dag Wieers 2019-02-15 12:57:20 +01:00 committed by GitHub
parent cedd9d9926
commit 203caf2570
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
54 changed files with 290 additions and 238 deletions

View file

@ -444,24 +444,24 @@ def create_scaling_policy(connection, module):
def main(): def main():
argument_spec = ec2_argument_spec() argument_spec = ec2_argument_spec()
argument_spec.update(dict( argument_spec.update(
state=dict(required=True, choices=['present', 'absent'], type='str'), state=dict(type='str', required=True, choices=['present', 'absent']),
policy_name=dict(required=True, type='str'), policy_name=dict(type='str', required=True),
service_namespace=dict(required=True, choices=['ecs', 'elasticmapreduce', 'ec2', 'appstream', 'dynamodb'], type='str'), service_namespace=dict(type='str', required=True, choices=['appstream', 'dynamodb', 'ec2', 'ecs', 'elasticmapreduce']),
resource_id=dict(required=True, type='str'), resource_id=dict(type='str', required=True),
scalable_dimension=dict(required=True, choices=['ecs:service:DesiredCount', scalable_dimension=dict(type='str',
'ec2:spot-fleet-request:TargetCapacity', required=True,
'elasticmapreduce:instancegroup:InstanceCount', choices=['ecs:service:DesiredCount',
'appstream:fleet:DesiredCapacity', 'ec2:spot-fleet-request:TargetCapacity',
'dynamodb:table:ReadCapacityUnits', 'elasticmapreduce:instancegroup:InstanceCount',
'dynamodb:table:WriteCapacityUnits', 'appstream:fleet:DesiredCapacity',
'dynamodb:index:ReadCapacityUnits', 'dynamodb:table:ReadCapacityUnits',
'dynamodb:index:WriteCapacityUnits' 'dynamodb:table:WriteCapacityUnits',
], type='str'), 'dynamodb:index:ReadCapacityUnits',
policy_type=dict(required=True, choices=['StepScaling', 'TargetTrackingScaling'], type='str'), 'dynamodb:index:WriteCapacityUnits']),
step_scaling_policy_configuration=dict(required=False, type='dict'), policy_type=dict(type='str', required=True, choices=['StepScaling', 'TargetTrackingScaling']),
step_scaling_policy_configuration=dict(type='dict'),
target_tracking_scaling_policy_configuration=dict( target_tracking_scaling_policy_configuration=dict(
required=False,
type='dict', type='dict',
options=dict( options=dict(
CustomizedMetricSpecification=dict(type='dict'), CustomizedMetricSpecification=dict(type='dict'),
@ -472,10 +472,10 @@ def main():
TargetValue=dict(type='float'), TargetValue=dict(type='float'),
) )
), ),
minimum_tasks=dict(required=False, type='int'), minimum_tasks=dict(type='int'),
maximum_tasks=dict(required=False, type='int'), maximum_tasks=dict(type='int'),
override_task_capacity=dict(required=False, type=bool) override_task_capacity=dict(type='bool'),
)) )
module = AnsibleAWSModule(argument_spec=argument_spec, supports_check_mode=True) module = AnsibleAWSModule(argument_spec=argument_spec, supports_check_mode=True)

View file

@ -25,115 +25,127 @@ options:
state: state:
description: description:
- Create or destroy the ELB - Create or destroy the ELB
choices: ["present", "absent"] type: str
choices: [ absent, present ]
required: true required: true
name: name:
description: description:
- The name of the ELB - The name of the ELB
type: str
required: true required: true
listeners: listeners:
description: description:
- List of ports/protocols for this ELB to listen on (see example) - List of ports/protocols for this ELB to listen on (see example)
required: false type: list
purge_listeners: purge_listeners:
description: description:
- Purge existing listeners on ELB that are not found in listeners - Purge existing listeners on ELB that are not found in listeners
type: bool type: bool
default: 'yes' default: yes
instance_ids: instance_ids:
description: description:
- List of instance ids to attach to this ELB - List of instance ids to attach to this ELB
type: bool type: list
default: 'no'
version_added: "2.1" version_added: "2.1"
purge_instance_ids: purge_instance_ids:
description: description:
- Purge existing instance ids on ELB that are not found in instance_ids - Purge existing instance ids on ELB that are not found in instance_ids
type: bool type: bool
default: 'no' default: no
version_added: "2.1" version_added: "2.1"
zones: zones:
description: description:
- List of availability zones to enable on this ELB - List of availability zones to enable on this ELB
required: false type: list
purge_zones: purge_zones:
description: description:
- Purge existing availability zones on ELB that are not found in zones - Purge existing availability zones on ELB that are not found in zones
type: bool type: bool
default: 'no' default: no
security_group_ids: security_group_ids:
description: description:
- A list of security groups to apply to the elb - A list of security groups to apply to the elb
type: list
version_added: "1.6" version_added: "1.6"
security_group_names: security_group_names:
description: description:
- A list of security group names to apply to the elb - A list of security group names to apply to the elb
type: list
version_added: "2.0" version_added: "2.0"
health_check: health_check:
description: description:
- An associative array of health check configuration settings (see example) - An associative array of health check configuration settings (see example)
type: dict
access_logs: access_logs:
description: description:
- An associative array of access logs configuration settings (see example) - An associative array of access logs configuration settings (see example)
type: dict
version_added: "2.0" version_added: "2.0"
subnets: subnets:
description: description:
- A list of VPC subnets to use when creating ELB. Zones should be empty if using this. - A list of VPC subnets to use when creating ELB. Zones should be empty if using this.
type: list
version_added: "1.7" version_added: "1.7"
purge_subnets: purge_subnets:
description: description:
- Purge existing subnet on ELB that are not found in subnets - Purge existing subnet on ELB that are not found in subnets
default: 'no'
version_added: "1.7"
type: bool type: bool
default: no
version_added: "1.7"
scheme: scheme:
description: description:
- The scheme to use when creating the ELB. For a private VPC-visible ELB use 'internal'. - The scheme to use when creating the ELB. For a private VPC-visible ELB use 'internal'.
If you choose to update your scheme with a different value the ELB will be destroyed and If you choose to update your scheme with a different value the ELB will be destroyed and
recreated. To update scheme you must use the option wait. recreated. To update scheme you must use the option wait.
type: str
choices: ["internal", "internet-facing"] choices: ["internal", "internet-facing"]
default: 'internet-facing' default: 'internet-facing'
version_added: "1.7" version_added: "1.7"
validate_certs: validate_certs:
description: description:
- When set to "no", SSL certificates will not be validated for boto versions >= 2.6.0. - When set to C(no), SSL certificates will not be validated for boto versions >= 2.6.0.
type: bool type: bool
default: 'yes' default: yes
version_added: "1.5" version_added: "1.5"
connection_draining_timeout: connection_draining_timeout:
description: description:
- Wait a specified timeout allowing connections to drain before terminating an instance - Wait a specified timeout allowing connections to drain before terminating an instance
type: int
version_added: "1.8" version_added: "1.8"
idle_timeout: idle_timeout:
description: description:
- ELB connections from clients and to servers are timed out after this amount of time - ELB connections from clients and to servers are timed out after this amount of time
type: int
version_added: "2.0" version_added: "2.0"
cross_az_load_balancing: cross_az_load_balancing:
description: description:
- Distribute load across all configured Availability Zones - Distribute load across all configured Availability Zones
type: bool type: bool
default: 'no' default: no
version_added: "1.8" version_added: "1.8"
stickiness: stickiness:
description: description:
- An associative array of stickiness policy settings. Policy will be applied to all listeners ( see example ) - An associative array of stickiness policy settings. Policy will be applied to all listeners ( see example )
type: dict
version_added: "2.0" version_added: "2.0"
wait: wait:
description: description:
- When specified, Ansible will check the status of the load balancer to ensure it has been successfully - When specified, Ansible will check the status of the load balancer to ensure it has been successfully
removed from AWS. removed from AWS.
type: bool type: bool
default: 'no' default: no
version_added: "2.1" version_added: "2.1"
wait_timeout: wait_timeout:
description: description:
- Used in conjunction with wait. Number of seconds to wait for the elb to be terminated. - Used in conjunction with wait. Number of seconds to wait for the elb to be terminated.
A maximum of 600 seconds (10 minutes) is allowed. A maximum of 600 seconds (10 minutes) is allowed.
type: int
default: 60 default: 60
version_added: "2.1" version_added: "2.1"
tags: tags:
description: description:
- An associative array of tags. To delete all tags, supply an empty dict. - An associative array of tags. To delete all tags, supply an empty dict.
type: dict
version_added: "2.1" version_added: "2.1"
extends_documentation_fragment: extends_documentation_fragment:

View file

@ -80,7 +80,7 @@ options:
geo_mapping: geo_mapping:
description: description:
- The list of countries/regions mapped to this endpoint when traffic manager profile has routing_method of C(geographic). - The list of countries/regions mapped to this endpoint when traffic manager profile has routing_method of C(geographic).
type: str type: list
state: state:
description: description:
- Assert the state of the Traffic Manager endpoint. Use C(present) to create or update a Traffic Manager endpoint and C(absent) to delete it. - Assert the state of the Traffic Manager endpoint. Use C(present) to create or update a Traffic Manager endpoint and C(absent) to delete it.

View file

@ -167,12 +167,12 @@ class AzureRMWebAppFacts(AzureRMModuleBase):
name=dict(type='str'), name=dict(type='str'),
resource_group=dict(type='str'), resource_group=dict(type='str'),
tags=dict(type='list'), tags=dict(type='list'),
return_publish_profile=dict(type=bool, default=False) return_publish_profile=dict(type='bool', default=False),
) )
self.results = dict( self.results = dict(
changed=False, changed=False,
webapps=[] webapps=[],
) )
self.name = None self.name = None

View file

@ -248,7 +248,7 @@ swap_spec = dict(
type='str' type='str'
), ),
preserve_vnet=dict( preserve_vnet=dict(
type=bool, type='bool',
default=True default=True
) )
) )

View file

@ -99,8 +99,7 @@ options:
description: description:
- Name of the new cloned server. This is only used when state is - Name of the new cloned server. This is only used when state is
clone. clone.
type: bool type: str
default: 'no'
version_added: "2.0" version_added: "2.0"
clone_snapshot: clone_snapshot:
choices: choices:

View file

@ -235,16 +235,16 @@ def core(module):
def main(): def main():
argument_spec = scaleway_argument_spec() argument_spec = scaleway_argument_spec()
argument_spec.update(dict( argument_spec.update(
state=dict(default='present', choices=['absent', 'present']), state=dict(type='str', default='present', choices=['absent', 'present']),
region=dict(required=True, choices=SCALEWAY_LOCATION.keys()), region=dict(type='str', required=True, choices=SCALEWAY_LOCATION.keys()),
protocol=dict(required=True, choices=['TCP', 'UDP', 'ICMP']), protocol=dict(type='str', required=True, choices=['TCP', 'UDP', 'ICMP']),
port=dict(required=True, type=int), port=dict(type='int', required=True),
ip_range=dict(default='0.0.0.0/0', type=lambda x: to_text(ip_network(to_text(x)))), ip_range=dict(type='str', default='0.0.0.0/0'),
direction=dict(required=True, choices=['inbound', 'outbound']), direction=dict(type='str', required=True, choices=['inbound', 'outbound']),
action=dict(required=True, choices=['accept', 'drop']), action=dict(type='str', required=True, choices=['accept', 'drop']),
security_group=dict(required=True), security_group=dict(type='str', required=True),
)) )
module = AnsibleModule( module = AnsibleModule(
argument_spec=argument_spec, argument_spec=argument_spec,
supports_check_mode=True, supports_check_mode=True,

View file

@ -60,7 +60,7 @@ options:
description: description:
- Determines if the portgroup should be present or not. - Determines if the portgroup should be present or not.
required: True required: True
type: bool type: str
choices: choices:
- 'present' - 'present'
- 'absent' - 'absent'

View file

@ -629,7 +629,7 @@ def main():
uuid=dict(type='str'), uuid=dict(type='str'),
folder=dict(type='str'), folder=dict(type='str'),
datacenter=dict(type='str', required=True), datacenter=dict(type='str', required=True),
disk=dict(type=list, default=[]), disk=dict(type='list', default=[]),
) )
module = AnsibleModule(argument_spec=argument_spec, module = AnsibleModule(argument_spec=argument_spec,
required_one_of=[['name', 'uuid']]) required_one_of=[['name', 'uuid']])

View file

@ -46,7 +46,7 @@ options:
description: description:
- "IP or FQDN of NTP server(s)." - "IP or FQDN of NTP server(s)."
- This accepts a list of NTP servers. For multiple servers, please look at the examples. - This accepts a list of NTP servers. For multiple servers, please look at the examples.
type: dict type: list
required: True required: True
state: state:
description: description:

View file

@ -510,22 +510,22 @@ def main():
module = AnsibleModule( module = AnsibleModule(
argument_spec=dict( argument_spec=dict(
state=dict(default='present', choices=['present', 'absent'], type='str'), state=dict(type='str', default='present', choices=['absent', 'present']),
force=dict(default=False, type=bool), force=dict(type='bool', default=False),
type=dict(choices=['host', 'user'], type='str'), type=dict(type='str', choices=['host', 'user']),
signing_key=dict(type='path'), signing_key=dict(type='path'),
public_key=dict(type='path'), public_key=dict(type='path'),
path=dict(required=True, type='path'), path=dict(type='path', required=True),
identifier=dict(type='str'), identifier=dict(type='str'),
valid_from=dict(type='str'), valid_from=dict(type='str'),
valid_to=dict(type='str'), valid_to=dict(type='str'),
valid_at=dict(type='str'), valid_at=dict(type='str'),
principals=dict(type=list), principals=dict(type='list'),
options=dict(type=list), options=dict(type='list'),
), ),
supports_check_mode=True, supports_check_mode=True,
add_file_common_args=True, add_file_common_args=True,
required_if=[('state', 'present', ['type', 'signing_key', 'public_key', 'valid_from', 'valid_to'])] required_if=[('state', 'present', ['type', 'signing_key', 'public_key', 'valid_from', 'valid_to'])],
) )
def isBaseDir(path): def isBaseDir(path):

View file

@ -46,7 +46,7 @@ options:
exclude_path: exclude_path:
description: description:
- Remote absolute path, glob, or list of paths or globs for the file or files to exclude from the archive. - Remote absolute path, glob, or list of paths or globs for the file or files to exclude from the archive.
type: str type: list
version_added: '2.4' version_added: '2.4'
remove: remove:
description: description:

View file

@ -127,7 +127,7 @@ options:
description: description:
- Specify the rsync command to run on the remote host. See C(--rsync-path) on the rsync man page. - Specify the rsync command to run on the remote host. See C(--rsync-path) on the rsync man page.
- To specify the rsync command to run on the local host, you need to set this your task var C(ansible_rsync_path). - To specify the rsync command to run on the local host, you need to set this your task var C(ansible_rsync_path).
type: path type: str
rsync_timeout: rsync_timeout:
description: description:
- Specify a C(--timeout) for the rsync command in seconds. - Specify a C(--timeout) for the rsync command in seconds.
@ -150,7 +150,7 @@ options:
description: description:
- Specify additional rsync options by passing in an array. - Specify additional rsync options by passing in an array.
- Note that an empty string in C(rsync_opts) will end up transfer the current working directory. - Note that an empty string in C(rsync_opts) will end up transfer the current working directory.
type: str type: list
default: default:
version_added: "1.6" version_added: "1.6"
partial: partial:
@ -173,7 +173,7 @@ options:
link_dest: link_dest:
description: description:
- Add a destination to hard link against during the rsync. - Add a destination to hard link against during the rsync.
type: str type: list
default: default:
version_added: "2.5" version_added: "2.5"
notes: notes:

View file

@ -120,10 +120,10 @@ options:
headers: headers:
description: description:
- Add custom HTTP headers to a request in hash/dict format. - Add custom HTTP headers to a request in hash/dict format.
- The hash/dict format was added in 2.6. - The hash/dict format was added in Ansible 2.6.
- Previous versions used a C("key:value,key:value") string format. - Previous versions used a C("key:value,key:value") string format.
- The C("key:value,key:value") string format is deprecated and will be removed in version 2.10. - The C("key:value,key:value") string format is deprecated and will be removed in version 2.10.
type: str type: raw
version_added: '2.0' version_added: '2.0'
url_username: url_username:
description: description:
@ -154,13 +154,13 @@ options:
description: description:
- PEM formatted certificate chain file to be used for SSL client authentication. - PEM formatted certificate chain file to be used for SSL client authentication.
- This file can also include the key as well, and if the key is included, C(client_key) is not required. - This file can also include the key as well, and if the key is included, C(client_key) is not required.
type: str type: path
version_added: '2.4' version_added: '2.4'
client_key: client_key:
description: description:
- PEM formatted file that contains your private key to be used for SSL client authentication. - PEM formatted file that contains your private key to be used for SSL client authentication.
- If C(client_cert) contains both the certificate and key, this option is not required. - If C(client_cert) contains both the certificate and key, this option is not required.
type: str type: path
version_added: '2.4' version_added: '2.4'
# informational: requirements for nodes # informational: requirements for nodes
extends_documentation_fragment: extends_documentation_fragment:

View file

@ -101,7 +101,7 @@ options:
status_code: status_code:
description: description:
- A list of valid, numeric, HTTP status codes that signifies success of the request. - A list of valid, numeric, HTTP status codes that signifies success of the request.
type: int type: list
default: 200 default: 200
timeout: timeout:
description: description:

View file

@ -29,7 +29,7 @@ options:
template: template:
description: description:
- The name of the template. - The name of the template.
type: list type: str
required: yes required: yes
anp: anp:
description: description:

View file

@ -29,7 +29,7 @@ options:
template: template:
description: description:
- The name of the template to change. - The name of the template to change.
type: list type: str
required: yes required: yes
anp: anp:
description: description:

View file

@ -29,7 +29,7 @@ options:
template: template:
description: description:
- The name of the template to change. - The name of the template to change.
type: list type: str
required: yes required: yes
anp: anp:
description: description:

View file

@ -29,7 +29,7 @@ options:
template: template:
description: description:
- The name of the template to change. - The name of the template to change.
type: list type: str
required: yes required: yes
anp: anp:
description: description:

View file

@ -29,7 +29,7 @@ options:
template: template:
description: description:
- The name of the template. - The name of the template.
type: list type: str
required: yes required: yes
bd: bd:
description: description:
@ -43,7 +43,7 @@ options:
vrf: vrf:
description: description:
- The VRF associated to this BD. - The VRF associated to this BD.
type: str type: dict
subnets: subnets:
description: description:
- The subnets associated to this BD. - The subnets associated to this BD.

View file

@ -29,7 +29,7 @@ options:
template: template:
description: description:
- The name of the template to change. - The name of the template to change.
type: list type: str
required: yes required: yes
bd: bd:
description: description:

View file

@ -29,7 +29,7 @@ options:
template: template:
description: description:
- The name of the template. - The name of the template.
type: list type: str
required: yes required: yes
contract: contract:
description: description:

View file

@ -29,7 +29,7 @@ options:
template: template:
description: description:
- The name of the template. - The name of the template.
type: list type: str
required: yes required: yes
externalepg: externalepg:
description: description:
@ -43,7 +43,7 @@ options:
vrf: vrf:
description: description:
- The VRF associated to this ANP. - The VRF associated to this ANP.
type: str type: dict
state: state:
description: description:
- Use C(present) or C(absent) for adding or removing. - Use C(present) or C(absent) for adding or removing.

View file

@ -29,7 +29,7 @@ options:
template: template:
description: description:
- The name of the template. - The name of the template.
type: list type: str
required: yes required: yes
filter: filter:
description: description:

View file

@ -29,7 +29,7 @@ options:
template: template:
description: description:
- The name of the template. - The name of the template.
type: list type: str
required: yes required: yes
l3out: l3out:
description: description:
@ -43,7 +43,7 @@ options:
vrf: vrf:
description: description:
- The VRF associated to this L3out. - The VRF associated to this L3out.
type: str type: dict
state: state:
description: description:
- Use C(present) or C(absent) for adding or removing. - Use C(present) or C(absent) for adding or removing.

View file

@ -29,7 +29,7 @@ options:
template: template:
description: description:
- The name of the template. - The name of the template.
type: list type: str
required: yes required: yes
vrf: vrf:
description: description:

View file

@ -86,7 +86,7 @@ options:
policy_package: policy_package:
description: description:
- Package policy name to be installed. - Package policy name to be installed.
type: bool type: str
default: 'standard' default: 'standard'
targets: targets:
description: description:

View file

@ -64,7 +64,7 @@ options:
policy_package: policy_package:
description: description:
- Package policy name to be installed. - Package policy name to be installed.
type: bool type: str
default: 'standard' default: 'standard'
targets: targets:
description: description:

View file

@ -26,27 +26,34 @@ options:
state: state:
description: description:
- Specifies whether SNMP information should be queried or modified. - Specifies whether SNMP information should be queried or modified.
choices: ['absent', 'query', 'present'] type: str
choices: [ absent, query, present ]
default: present default: present
number: number:
description: description:
- SSID number within network. - SSID number within network.
type: int
aliases: [ssid_number] aliases: [ssid_number]
name: name:
description: description:
- Name of SSID. - Name of SSID.
type: str
org_name: org_name:
description: description:
- Name of organization. - Name of organization.
type: str
org_id: org_id:
description: description:
- ID of organization. - ID of organization.
type: int
net_name: net_name:
description: description:
- Name of network. - Name of network.
type: str
net_id: net_id:
description: description:
- ID of network. - ID of network.
type: str
enabled: enabled:
description: description:
- Enable or disable SSID network. - Enable or disable SSID network.
@ -54,22 +61,27 @@ options:
auth_mode: auth_mode:
description: description:
- Set authentication mode of network. - Set authentication mode of network.
type: str
choices: [open, psk, open-with-radius, 8021x-meraki, 8021x-radius] choices: [open, psk, open-with-radius, 8021x-meraki, 8021x-radius]
encryption_mode: encryption_mode:
description: description:
- Set encryption mode of network. - Set encryption mode of network.
type: str
choices: [wpa, eap, wpa-eap] choices: [wpa, eap, wpa-eap]
psk: psk:
description: description:
- Password for wireless network. - Password for wireless network.
- Requires auth_mode to be set to psk. - Requires auth_mode to be set to psk.
type: str
wpa_encryption_mode: wpa_encryption_mode:
description: description:
- Encryption mode within WPA2 specification. - Encryption mode within WPA2 specification.
type: str
choices: [WPA1 and WPA2, WPA2 only] choices: [WPA1 and WPA2, WPA2 only]
splash_page: splash_page:
description: description:
- Set to enable splash page and specify type of splash. - Set to enable splash page and specify type of splash.
type: str
choices: ['None', choices: ['None',
'Click-through splash page', 'Click-through splash page',
'Billing', 'Billing',
@ -85,16 +97,20 @@ options:
radius_servers: radius_servers:
description: description:
- List of RADIUS servers. - List of RADIUS servers.
type: list
suboptions: suboptions:
host: host:
description: description:
- IP address or hostname of RADIUS server. - IP address or hostname of RADIUS server.
type: str
port: port:
description: description:
- Port number RADIUS server is listening to. - Port number RADIUS server is listening to.
type: int
secret: secret:
description: description:
- RADIUS password. - RADIUS password.
type: str
radius_coa_enabled: radius_coa_enabled:
description: description:
- Enable or disable RADIUS CoA (Change of Authorization) on SSID. - Enable or disable RADIUS CoA (Change of Authorization) on SSID.
@ -102,10 +118,12 @@ options:
radius_failover_policy: radius_failover_policy:
description: description:
- Set client access policy in case RADIUS servers aren't available. - Set client access policy in case RADIUS servers aren't available.
type: str
choices: [Deny access, Allow access] choices: [Deny access, Allow access]
radius_load_balancing_policy: radius_load_balancing_policy:
description: description:
- Set load balancing policy when multiple RADIUS servers are specified. - Set load balancing policy when multiple RADIUS servers are specified.
type: str
choices: [Strict priority order, Round robin] choices: [Strict priority order, Round robin]
radius_accounting_enabled: radius_accounting_enabled:
description: description:
@ -114,19 +132,24 @@ options:
radius_accounting_servers: radius_accounting_servers:
description: description:
- List of RADIUS servers for RADIUS accounting. - List of RADIUS servers for RADIUS accounting.
type: list
suboptions: suboptions:
host: host:
description: description:
- IP address or hostname of RADIUS server. - IP address or hostname of RADIUS server.
type: str
port: port:
description: description:
- Port number RADIUS server is listening to. - Port number RADIUS server is listening to.
type: int
secret: secret:
description: description:
- RADIUS password. - RADIUS password.
type: str
ip_assignment_mode: ip_assignment_mode:
description: description:
- Method of which SSID uses to assign IP addresses. - Method of which SSID uses to assign IP addresses.
type: str
choices: ['NAT mode', choices: ['NAT mode',
'Bridge mode', 'Bridge mode',
'Layer 3 roaming', 'Layer 3 roaming',
@ -139,19 +162,24 @@ options:
default_vlan_id: default_vlan_id:
description: description:
- Default VLAN ID. - Default VLAN ID.
type: str
vlan_id: vlan_id:
description: description:
- ID number of VLAN on SSID. - ID number of VLAN on SSID.
type: int
ap_tags_vlan_ids: ap_tags_vlan_ids:
description: description:
- List of VLAN tags. - List of VLAN tags.
type: list
suboptions: suboptions:
tags: tags:
description: description:
- List of AP tags. - List of AP tags.
type: list
vlan_id: vlan_id:
description: description:
- Numerical identifier that is assigned to the VLAN. - Numerical identifier that is assigned to the VLAN.
type: int
walled_garden_enabled: walled_garden_enabled:
description: description:
- Enable or disable walled garden functionality. - Enable or disable walled garden functionality.
@ -159,23 +187,29 @@ options:
walled_garden_ranges: walled_garden_ranges:
description: description:
- List of walled garden ranges. - List of walled garden ranges.
type: list
min_bitrate: min_bitrate:
description: description:
- Minimum bitrate (Mbps) allowed on SSID. - Minimum bitrate (Mbps) allowed on SSID.
type: float
choices: [1, 2, 5.5, 6, 9, 11, 12, 18, 24, 36, 48, 54] choices: [1, 2, 5.5, 6, 9, 11, 12, 18, 24, 36, 48, 54]
band_selection: band_selection:
description: description:
- Set band selection mode. - Set band selection mode.
type: str
choices: ['Dual band operation', '5 GHz band only', 'Dual band operation with Band Steering'] choices: ['Dual band operation', '5 GHz band only', 'Dual band operation with Band Steering']
per_client_bandwidth_limit_up: per_client_bandwidth_limit_up:
description: description:
- Maximum bandwidth in Mbps devices on SSID can upload. - Maximum bandwidth in Mbps devices on SSID can upload.
type: int
per_client_bandwidth_limit_down: per_client_bandwidth_limit_down:
description: description:
- Maximum bandwidth in Mbps devices on SSID can download. - Maximum bandwidth in Mbps devices on SSID can download.
type: int
concentrator_network_id: concentrator_network_id:
description: description:
- The concentrator to use for 'Layer 3 roaming with a concentrator' or 'VPN'. - The concentrator to use for 'Layer 3 roaming with a concentrator' or 'VPN'.
type: str
author: author:
- Kevin Breit (@kbreit) - Kevin Breit (@kbreit)
extends_documentation_fragment: meraki extends_documentation_fragment: meraki

View file

@ -73,7 +73,7 @@ options:
delay_restore: delay_restore:
description: description:
- manages delay restore command and config value in seconds - manages delay restore command and config value in seconds
type: bool type: str
state: state:
description: description:
- Manages desired state of the resource - Manages desired state of the resource

View file

@ -461,15 +461,15 @@ def main():
""" main entry point for module execution """ main entry point for module execution
""" """
element_spec = dict( element_spec = dict(
name=dict(aliases=['vrf']), name=dict(type='str', aliases=['vrf']),
description=dict(), description=dict(type='str'),
vni=dict(type=str), vni=dict(type='str'),
rd=dict(type=str), rd=dict(type='str'),
admin_state=dict(default='up', choices=['up', 'down']), admin_state=dict(type='str', default='up', choices=['up', 'down']),
interfaces=dict(type='list'), interfaces=dict(type='list'),
associated_interfaces=dict(type='list'), associated_interfaces=dict(type='list'),
delay=dict(default=10, type='int'), delay=dict(type='int', default=10),
state=dict(default='present', choices=['present', 'absent']) state=dict(type='str', default='present', choices=['present', 'absent']),
) )
aggregate_spec = deepcopy(element_spec) aggregate_spec = deepcopy(element_spec)
@ -479,7 +479,7 @@ def main():
argument_spec = dict( argument_spec = dict(
aggregate=dict(type='list', elements='dict', options=aggregate_spec), aggregate=dict(type='list', elements='dict', options=aggregate_spec),
purge=dict(default=False, type='bool') purge=dict(type='bool', default=False),
) )
argument_spec.update(element_spec) argument_spec.update(element_spec)

View file

@ -32,45 +32,43 @@ options:
description: description:
- Do not run unit tests - Do not run unit tests
type: bool type: bool
default: 'no' default: no
locallib: locallib:
description: description:
- Specify the install base to install modules - Specify the install base to install modules
type: bool type: path
default: 'no'
mirror: mirror:
description: description:
- Specifies the base URL for the CPAN mirror to use - Specifies the base URL for the CPAN mirror to use
type: bool type: str
default: 'no'
mirror_only: mirror_only:
description: description:
- Use the mirror's index file instead of the CPAN Meta DB - Use the mirror's index file instead of the CPAN Meta DB
type: bool type: bool
default: 'no' default: no
installdeps: installdeps:
description: description:
- Only install dependencies - Only install dependencies
type: bool type: bool
default: 'no' default: no
version_added: "2.0" version_added: "2.0"
version: version:
description: description:
- minimum version of perl module to consider acceptable - minimum version of perl module to consider acceptable
type: bool type: str
default: 'no'
version_added: "2.1" version_added: "2.1"
system_lib: system_lib:
description: description:
- Use this if you want to install modules to the system perl include path. You must be root or have "passwordless" sudo for this to work. - Use this if you want to install modules to the system perl include path. You must be root or have "passwordless" sudo for this to work.
- This uses the cpanm commandline option '--sudo', which has nothing to do with ansible privilege escalation. - This uses the cpanm commandline option '--sudo', which has nothing to do with ansible privilege escalation.
type: bool type: bool
default: 'no' default: no
version_added: "2.0"
aliases: ['use_sudo'] aliases: ['use_sudo']
version_added: "2.0"
executable: executable:
description: description:
- Override the path to the cpanm executable - Override the path to the cpanm executable
type: path
version_added: "2.1" version_added: "2.1"
notes: notes:
- Please note that U(http://search.cpan.org/dist/App-cpanminus/bin/cpanm, cpanm) must be installed on the remote host. - Please note that U(http://search.cpan.org/dist/App-cpanminus/bin/cpanm, cpanm) must be installed on the remote host.

View file

@ -263,7 +263,7 @@ def main():
module = AnsibleModule( module = AnsibleModule(
argument_spec=dict( argument_spec=dict(
name=dict(type='list', required=True, aliases=['pkg']), name=dict(type='list', required=True, aliases=['pkg']),
repository_path=dict(type='str'), repository_path=dict(type='path'),
accept_license=dict(type='bool', default=False), accept_license=dict(type='bool', default=False),
state=dict(type='str', default='present', choices=['absent', 'present']), state=dict(type='str', default='present', choices=['absent', 'present']),
), ),

View file

@ -13,14 +13,15 @@ ANSIBLE_METADATA = {'metadata_version': '1.1',
'supported_by': 'community'} 'supported_by': 'community'}
DOCUMENTATION = ''' DOCUMENTATION = r'''
--- ---
module: rhn_register module: rhn_register
short_description: Manage Red Hat Network registration using the C(rhnreg_ks) command short_description: Manage Red Hat Network registration using the C(rhnreg_ks) command
description: description:
- Manage registration to the Red Hat Network. - Manage registration to the Red Hat Network.
version_added: "1.2" version_added: "1.2"
author: James Laska (@jlaska) author:
- James Laska (@jlaska)
notes: notes:
- This is for older Red Hat products. You probably want the M(redhat_subscription) module instead. - This is for older Red Hat products. You probably want the M(redhat_subscription) module instead.
- In order to register a system, rhnreg_ks requires either a username and password, or an activationkey. - In order to register a system, rhnreg_ks requires either a username and password, or an activationkey.
@ -31,86 +32,93 @@ options:
state: state:
description: description:
- whether to register (C(present)), or unregister (C(absent)) a system - whether to register (C(present)), or unregister (C(absent)) a system
choices: [ "present", "absent" ] type: str
default: "present" choices: [ absent, present ]
default: present
username: username:
description: description:
- Red Hat Network username - Red Hat Network username
type: str
password: password:
description: description:
- Red Hat Network password - Red Hat Network password
type: str
server_url: server_url:
description: description:
- Specify an alternative Red Hat Network server URL - Specify an alternative Red Hat Network server URL
default: Current value of I(serverURL) from C(/etc/sysconfig/rhn/up2date) is the default - The default is the current value of I(serverURL) from C(/etc/sysconfig/rhn/up2date).
type: str
activationkey: activationkey:
description: description:
- supply an activation key for use with registration - supply an activation key for use with registration
type: str
profilename: profilename:
description: description:
- supply an profilename for use with registration - supply an profilename for use with registration
type: str
version_added: "2.0" version_added: "2.0"
sslcacert: sslcacert:
description: description:
- supply a custom ssl CA certificate file for use with registration - supply a custom ssl CA certificate file for use with registration
type: str
version_added: "2.1" version_added: "2.1"
systemorgid: systemorgid:
description: description:
- supply an organizational id for use with registration - supply an organizational id for use with registration
type: str
version_added: "2.1" version_added: "2.1"
channels: channels:
description: description:
- Optionally specify a list of comma-separated channels to subscribe to upon successful registration. - Optionally specify a list of channels to subscribe to upon successful registration.
type: list
default: [] default: []
enable_eus: enable_eus:
description: description:
- If C(no), extended update support will be requested. - If C(no), extended update support will be requested.
type: bool type: bool
default: 'no' default: no
nopackages: nopackages:
description: description:
- If C(yes), the registered node will not upload its installed packages information to Satellite server - If C(yes), the registered node will not upload its installed packages information to Satellite server
type: bool type: bool
default: 'no' default: no
version_added: "2.5" version_added: "2.5"
''' '''
EXAMPLES = ''' EXAMPLES = r'''
# Unregister system from RHN. - name: Unregister system from RHN
- rhn_register: rhn_register:
state: absent state: absent
username: joe_user username: joe_user
password: somepass password: somepass
# Register as user (joe_user) with password (somepass) and auto-subscribe to available content. - name: Register as user with password and auto-subscribe to available content
- rhn_register: rhn_register:
state: present state: present
username: joe_user username: joe_user
password: somepass password: somepass
# Register with activationkey (1-222333444) and enable extended update support. - name: Register with activationkey and enable extended update support
- rhn_register: rhn_register:
state: present state: present
activationkey: 1-222333444 activationkey: 1-222333444
enable_eus: true enable_eus: true
# Register with activationkey (1-222333444) and set a profilename which may differ from the hostname. - name: Register with activationkey and set a profilename which may differ from the hostname
- rhn_register: rhn_register:
state: present state: present
activationkey: 1-222333444 activationkey: 1-222333444
profilename: host.example.com.custom profilename: host.example.com.custom
# Register as user (joe_user) with password (somepass) against a satellite - name: Register as user with password against a satellite server
# server specified by (server_url). rhn_register:
- rhn_register:
state: present state: present
username: joe_user username: joe_user
password: somepass' password: somepass'
server_url: https://xmlrpc.my.satellite/XMLRPC server_url: https://xmlrpc.my.satellite/XMLRPC
# Register as user (joe_user) with password (somepass) and enable - name: Register as user with password and enable channels
# channels (rhel-x86_64-server-6-foo-1) and (rhel-x86_64-server-6-bar-1). rhn_register:
- rhn_register:
state: present state: present
username: joe_user username: joe_user
password: somepass password: somepass
@ -338,24 +346,24 @@ def main():
module = AnsibleModule( module = AnsibleModule(
argument_spec=dict( argument_spec=dict(
state=dict(default='present', choices=['present', 'absent']), state=dict(type='str', default='present', choices=['absent', 'present']),
username=dict(default=None, required=False), username=dict(type='str'),
password=dict(default=None, required=False, no_log=True), password=dict(type='str', no_log=True),
server_url=dict(default=None, required=False), server_url=dict(type='str'),
activationkey=dict(default=None, required=False, no_log=True), activationkey=dict(type='str', no_log=True),
profilename=dict(default=None, required=False), profilename=dict(type='str'),
sslcacert=dict(default=None, required=False, type='path'), sslcacert=dict(type='path'),
systemorgid=dict(default=None, required=False), systemorgid=dict(type='str'),
enable_eus=dict(default=False, type='bool'), enable_eus=dict(type='bool', default=False),
nopackages=dict(default=False, type='bool'), nopackages=dict(type='bool', default=False),
channels=dict(default=[], type='list'), channels=dict(type='list', default=[]),
), ),
# username/password is required for state=absent, or if channels is not empty # username/password is required for state=absent, or if channels is not empty
# (basically anything that uses self.api requires username/password) but it doesnt # (basically anything that uses self.api requires username/password) but it doesnt
# look like we can express that with required_if/required_together/mutually_exclusive # look like we can express that with required_if/required_together/mutually_exclusive
# only username+password can be used for unregister # only username+password can be used for unregister
required_if=[['state', 'absent', ['username', 'password']]] required_if=[['state', 'absent', ['username', 'password']]],
) )
if not HAS_UP2DATE_CLIENT: if not HAS_UP2DATE_CLIENT:

View file

@ -334,19 +334,19 @@ def _configure_virtual_drive(module, mo):
def _virtual_drive_argument_spec(): def _virtual_drive_argument_spec():
return dict( return dict(
access_policy=dict(type=str, default='platform-default', access_policy=dict(type='str', default='platform-default',
choices=["blocked", "hidden", "platform-default", "read-only", "read-write", choices=["blocked", "hidden", "platform-default", "read-only", "read-write",
"transport-ready"]), "transport-ready"]),
drive_cache=dict(type=str, default='platform-default', drive_cache=dict(type='str', default='platform-default',
choices=["disable", "enable", "no-change", "platform-default"]), choices=["disable", "enable", "no-change", "platform-default"]),
io_policy=dict(type=str, default='platform-default', io_policy=dict(type='str', default='platform-default',
choices=["cached", "direct", "platform-default"]), choices=["cached", "direct", "platform-default"]),
read_policy=dict(type=str, default='platform-default', read_policy=dict(type='str', default='platform-default',
choices=["normal", "platform-default", "read-ahead"]), choices=["normal", "platform-default", "read-ahead"]),
strip_size=dict(type=str, default='platform-default', strip_size=dict(type='str', default='platform-default',
choices=["1024KB", "128KB", "16KB", "256KB", "32KB", "512KB", "64KB", "8KB", choices=["1024KB", "128KB", "16KB", "256KB", "32KB", "512KB", "64KB", "8KB",
"platform-default"]), "platform-default"]),
write_cache_policy=dict(type=str, default='platform-default', write_cache_policy=dict(type='str', default='platform-default',
choices=["always-write-back", "platform-default", "write-back-good-bbu", choices=["always-write-back", "platform-default", "write-back-good-bbu",
"write-through"]), "write-through"]),
) )

View file

@ -114,20 +114,20 @@ class ElementSWCluster(object):
def __init__(self): def __init__(self):
self.argument_spec = netapp_utils.ontap_sf_host_argument_spec() self.argument_spec = netapp_utils.ontap_sf_host_argument_spec()
self.argument_spec.update(dict( self.argument_spec.update(
management_virtual_ip=dict(required=True, type='str'), management_virtual_ip=dict(type='str', required=True),
storage_virtual_ip=dict(required=True, type='str'), storage_virtual_ip=dict(type='str', required=True),
replica_count=dict(required=False, type='str', default='2'), replica_count=dict(type='str', default='2'),
cluster_admin_username=dict(required=False, type='str'), cluster_admin_username=dict(type='str'),
cluster_admin_password=dict(required=False, type='str', no_log=True), cluster_admin_password=dict(type='str', no_log=True),
accept_eula=dict(required=True, type='bool'), accept_eula=dict(type='bool', required=True),
nodes=dict(required=False, type=list, default=None), nodes=dict(type='list'),
attributes=dict(required=False, type=list, default=None) attributes=dict(type='list'),
)) )
self.module = AnsibleModule( self.module = AnsibleModule(
argument_spec=self.argument_spec, argument_spec=self.argument_spec,
supports_check_mode=True supports_check_mode=True,
) )
input_params = self.module.params input_params = self.module.params

View file

@ -116,23 +116,23 @@ class NetappElementLdap(object):
def __init__(self): def __init__(self):
self.argument_spec = netapp_utils.ontap_sf_host_argument_spec() self.argument_spec = netapp_utils.ontap_sf_host_argument_spec()
self.argument_spec.update(dict( self.argument_spec.update(
state=dict(required=True, choices=['present', 'absent']), state=dict(type='str', required=True, choices=['absent', 'present']),
authType=dict(required=False, choices=['DirectBind', 'SearchAndBind']), authType=dict(type='str', choices=['DirectBind', 'SearchAndBind']),
groupSearchBaseDn=dict(required=False, type=str), groupSearchBaseDn=dict(type='str'),
groupSearchType=dict(required=False, choices=['NoGroup', 'ActiveDirectory', 'MemberDN']), groupSearchType=dict(type='str', choices=['NoGroup', 'ActiveDirectory', 'MemberDN']),
serverURIs=dict(required=False, type=str), serverURIs=dict(type='str'),
userSearchBaseDN=dict(required=False, type=str), userSearchBaseDN=dict(type='str'),
searchBindDN=dict(required=False, type=str), searchBindDN=dict(type='str'),
searchBindPassword=dict(required=False, type=str, no_log=True), searchBindPassword=dict(type='str', no_log=True),
userSearchFilter=dict(required=False, type=str), userSearchFilter=dict(type='str'),
userDNTemplate=dict(required=False, type=str), userDNTemplate=dict(type='str'),
groupSearchCustomFilter=dict(required=False, type=str) groupSearchCustomFilter=dict(type='str'),
)) )
self.module = AnsibleModule( self.module = AnsibleModule(
argument_spec=self.argument_spec, argument_spec=self.argument_spec,
supports_check_mode=True supports_check_mode=True,
) )
param = self.module.params param = self.module.params

View file

@ -176,28 +176,28 @@ class ElementSWNetworkInterfaces(object):
def __init__(self): def __init__(self):
self.argument_spec = netapp_utils.ontap_sf_host_argument_spec() self.argument_spec = netapp_utils.ontap_sf_host_argument_spec()
self.argument_spec.update(dict( self.argument_spec.update(
method=dict(required=True, type='str', choices=['loopback', 'manual', 'dhcp', 'static']), method=dict(type='str', required=True, choices=['loopback', 'manual', 'dhcp', 'static']),
ip_address_1g=dict(required=True, type='str'), ip_address_1g=dict(type='str', required=True),
ip_address_10g=dict(required=True, type='str'), ip_address_10g=dict(type='str', required=True),
subnet_1g=dict(required=True, type='str'), subnet_1g=dict(type='str', required=True),
subnet_10g=dict(required=True, type='str'), subnet_10g=dict(type='str', required=True),
gateway_address_1g=dict(required=True, type='str'), gateway_address_1g=dict(type='str', required=True),
gateway_address_10g=dict(required=True, type='str'), gateway_address_10g=dict(type='str', required=True),
mtu_1g=dict(required=False, type='str', default='1500'), mtu_1g=dict(type='str', default='1500'),
mtu_10g=dict(required=False, type='str', default='1500'), mtu_10g=dict(type='str', default='1500'),
dns_nameservers=dict(required=False, type=list), dns_nameservers=dict(type='list'),
dns_search_domains=dict(required=False, type=list), dns_search_domains=dict(type='list'),
bond_mode_1g=dict(required=False, type='str', choices=['ActivePassive', 'ALB', 'LACP'], default='ActivePassive'), bond_mode_1g=dict(type='str', default='ActivePassive', choices=['ActivePassive', 'ALB', 'LACP']),
bond_mode_10g=dict(required=False, type='str', choices=['ActivePassive', 'ALB', 'LACP'], default='ActivePassive'), bond_mode_10g=dict(type='str', default='ActivePassive', choices=['ActivePassive', 'ALB', 'LACP']),
lacp_1g=dict(required=False, type='str', choices=['Fast', 'Slow'], default='Slow'), lacp_1g=dict(type='str', default='Slow', choices=['Fast', 'Slow']),
lacp_10g=dict(required=False, type='str', choices=['Fast', 'Slow'], default='Slow'), lacp_10g=dict(type='str', default='Slow', choices=['Fast', 'Slow']),
virtual_network_tag=dict(required=False, type='str') virtual_network_tag=dict(type='str'),
)) )
self.module = AnsibleModule( self.module = AnsibleModule(
argument_spec=self.argument_spec, argument_spec=self.argument_spec,
supports_check_mode=True supports_check_mode=True,
) )
input_params = self.module.params input_params = self.module.params

View file

@ -155,27 +155,26 @@ class NetAppOntapInterface(object):
def __init__(self): def __init__(self):
self.argument_spec = netapp_utils.na_ontap_host_argument_spec() self.argument_spec = netapp_utils.na_ontap_host_argument_spec()
self.argument_spec.update(dict( self.argument_spec.update(
state=dict(required=False, choices=[ state=dict(type='str', default='present', choices=['absent', 'present']),
'present', 'absent'], default='present'), interface_name=dict(type='str', required=True),
interface_name=dict(required=True, type='str'), home_node=dict(type='str'),
home_node=dict(required=False, type='str', default=None), home_port=dict(type='str'),
home_port=dict(required=False, type='str'), role=dict(type='str'),
role=dict(required=False, type='str'), address=dict(type='str'),
address=dict(required=False, type='str'), netmask=dict(type='str'),
netmask=dict(required=False, type='str'), vserver=dict(type='str', required=True),
vserver=dict(required=True, type='str'), firewall_policy=dict(type='str'),
firewall_policy=dict(required=False, type='str', default=None), failover_policy=dict(type='str'),
failover_policy=dict(required=False, type='str', default=None), admin_status=dict(type='str', choices=['up', 'down']),
admin_status=dict(required=False, choices=['up', 'down']), subnet_name=dict(type='str'),
subnet_name=dict(required=False, type='str'), is_auto_revert=dict(type='bool'),
is_auto_revert=dict(required=False, type=bool, default=None), protocols=dict(type='list'),
protocols=dict(required=False, type='list') )
))
self.module = AnsibleModule( self.module = AnsibleModule(
argument_spec=self.argument_spec, argument_spec=self.argument_spec,
supports_check_mode=True supports_check_mode=True,
) )
self.na_helper = NetAppModule() self.na_helper = NetAppModule()
self.parameters = self.na_helper.set_parameters(self.module.params) self.parameters = self.na_helper.set_parameters(self.module.params)

View file

@ -54,7 +54,7 @@ options:
permissions: permissions:
description: description:
- The list of permission(s) to delegate (required if C(state) is C(present)). - The list of permission(s) to delegate (required if C(state) is C(present)).
type: str type: list
choices: [ allow, clone, create, destroy, mount, promote, readonly, receive, rename, rollback, send, share, snapshot, unallow ] choices: [ allow, clone, create, destroy, mount, promote, readonly, receive, rename, rollback, send, share, snapshot, unallow ]
local: local:
description: description:

View file

@ -26,7 +26,7 @@ options:
attributes: attributes:
description: description:
- A list of device attributes. - A list of device attributes.
type: list type: dict
device: device:
description: description:
- The name of the device. - The name of the device.

View file

@ -33,7 +33,7 @@ options:
attributes: attributes:
description: description:
- Specifies attributes for files system separated by comma. - Specifies attributes for files system separated by comma.
type: str type: list
default: agblksize='4096',isnapshot='no' default: agblksize='4096',isnapshot='no'
auto_mount: auto_mount:
description: description:

View file

@ -216,7 +216,7 @@ def main():
lv_type=dict(type='str', default='jfs2'), lv_type=dict(type='str', default='jfs2'),
size=dict(type='str'), size=dict(type='str'),
opts=dict(type='str', default=''), opts=dict(type='str', default=''),
copies=dict(type='str', default=1), copies=dict(type='int', default=1),
state=dict(type='str', default='present', choices=['absent', 'present']), state=dict(type='str', default='present', choices=['absent', 'present']),
policy=dict(type='str', default='maximum', choices=['maximum', 'minimum']), policy=dict(type='str', default='maximum', choices=['maximum', 'minimum']),
pvs=dict(type='list', default=list()) pvs=dict(type='list', default=list())

View file

@ -662,7 +662,7 @@ def main():
argument_spec=dict( argument_spec=dict(
user=dict(type='str', required=True), user=dict(type='str', required=True),
key=dict(type='str', required=True), key=dict(type='str', required=True),
path=dict(type='str'), path=dict(type='path'),
manage_dir=dict(type='bool', default=True), manage_dir=dict(type='bool', default=True),
state=dict(type='str', default='present', choices=['absent', 'present']), state=dict(type='str', default='present', choices=['absent', 'present']),
key_options=dict(type='str'), key_options=dict(type='str'),

View file

@ -443,7 +443,7 @@ def main():
argument_spec=dict( argument_spec=dict(
state=dict(type='str', default='present', choices=['absent', 'present']), state=dict(type='str', default='present', choices=['absent', 'present']),
name=dict(type='str', required=True), name=dict(type='str', required=True),
gid=dict(type='str'), gid=dict(type='int'),
system=dict(type='bool', default=False), system=dict(type='bool', default=False),
local=dict(type='bool', default=False) local=dict(type='bool', default=False)
), ),

View file

@ -37,7 +37,7 @@ options:
description: description:
- The size of the physical extent. pesize must be a power of 2, or multiple of 128KiB. - The size of the physical extent. pesize must be a power of 2, or multiple of 128KiB.
- Since Ansible 2.6, pesize can be optionally suffixed by a UNIT (k/K/m/M/g/G), default unit is megabyte. - Since Ansible 2.6, pesize can be optionally suffixed by a UNIT (k/K/m/M/g/G), default unit is megabyte.
type: int type: str
default: 4 default: 4
pv_options: pv_options:
description: description:

View file

@ -50,12 +50,12 @@ options:
service_dir: service_dir:
description: description:
- Directory svscan watches for services - Directory svscan watches for services
type: path type: str
default: /service default: /service
service_src: service_src:
description: description:
- Directory where services are defined, the source of symlinks to service_dir. - Directory where services are defined, the source of symlinks to service_dir.
type: path type: str
default: /etc/service default: /etc/service
''' '''

View file

@ -47,13 +47,13 @@ options:
- Run daemon-reload before doing any other operations, to make sure systemd has read any changes. - Run daemon-reload before doing any other operations, to make sure systemd has read any changes.
- When set to C(yes), runs daemon-reload even if the module does not start or stop anything. - When set to C(yes), runs daemon-reload even if the module does not start or stop anything.
type: bool type: bool
default: 'no' default: no
aliases: [ daemon-reload ] aliases: [ daemon-reload ]
daemon_reexec: daemon_reexec:
description: description:
- Run daemon_reexec command before doing any other operations, the systemd manager will serialize the manager state. - Run daemon_reexec command before doing any other operations, the systemd manager will serialize the manager state.
type: bool type: bool
default: 'no' default: no
aliases: [ daemon-reexec ] aliases: [ daemon-reexec ]
version_added: "2.8" version_added: "2.8"
user: user:
@ -62,7 +62,7 @@ options:
of the system. of the system.
- This option is deprecated and will eventually be removed in 2.11. The ``scope`` option should be used instead. - This option is deprecated and will eventually be removed in 2.11. The ``scope`` option should be used instead.
type: bool type: bool
default: 'no' default: no
scope: scope:
description: description:
- run systemctl within a given service manager scope, either as the default system scope (system), - run systemctl within a given service manager scope, either as the default system scope (system),
@ -71,14 +71,13 @@ options:
The user dbus process is normally started during normal login, but not during the run of Ansible tasks. The user dbus process is normally started during normal login, but not during the run of Ansible tasks.
Otherwise you will probably get a 'Failed to connect to bus: no such file or directory' error." Otherwise you will probably get a 'Failed to connect to bus: no such file or directory' error."
choices: [ system, user, global ] choices: [ system, user, global ]
default: 'system'
version_added: "2.7" version_added: "2.7"
no_block: no_block:
description: description:
- Do not synchronously wait for the requested operation to finish. - Do not synchronously wait for the requested operation to finish.
Enqueued job will continue without Ansible blocking on its completion. Enqueued job will continue without Ansible blocking on its completion.
type: bool type: bool
default: 'no' default: no
version_added: "2.3" version_added: "2.3"
notes: notes:
- Since 2.4, one of the following options is required 'state', 'enabled', 'masked', 'daemon_reload', and all except 'daemon_reload' also require 'name'. - Since 2.4, one of the following options is required 'state', 'enabled', 'masked', 'daemon_reload', and all except 'daemon_reload' also require 'name'.

View file

@ -2597,7 +2597,7 @@ def main():
argument_spec=dict( argument_spec=dict(
state=dict(type='str', default='present', choices=['absent', 'present']), state=dict(type='str', default='present', choices=['absent', 'present']),
name=dict(type='str', required=True, aliases=['user']), name=dict(type='str', required=True, aliases=['user']),
uid=dict(type='str'), uid=dict(type='int'),
non_unique=dict(type='bool', default=False), non_unique=dict(type='bool', default=False),
group=dict(type='str'), group=dict(type='str'),
groups=dict(type='list'), groups=dict(type='list'),

View file

@ -31,6 +31,7 @@ options:
name: name:
description: description:
- The name of the object. Will be used to identify the entry. - The name of the object. Will be used to identify the entry.
type: str
required: true required: true
adirectory_groups: adirectory_groups:
description: description:
@ -39,11 +40,11 @@ options:
adirectory_groups_sids: adirectory_groups_sids:
description: description:
- Dictionary of group sids. - Dictionary of group sids.
type: list type: dict
backend_match: backend_match:
description: description:
- The backend for the group. - The backend for the group.
default: none type: str
choices: choices:
- none - none
- adirectory - adirectory
@ -51,15 +52,16 @@ options:
- radius - radius
- tacacs - tacacs
- ldap - ldap
default: none
comment: comment:
description: description:
- Comment that describes the AAA group. - Comment that describes the AAA group.
default: ''
type: str type: str
required: false default: ''
dynamic: dynamic:
description: description:
- Group type. Is static if none is selected. - Group type. Is static if none is selected.
type: str
default: none default: none
choices: choices:
- none - none
@ -84,18 +86,22 @@ options:
members: members:
description: description:
- A list of user ref names (aaa/user). - A list of user ref names (aaa/user).
type: list
default: [] default: []
network: network:
description: description:
- The network reference name. The objects contains the known ip addresses for the authentication object (network/aaa). - The network reference name. The objects contains the known ip addresses for the authentication object (network/aaa).
type: str
default: "" default: ""
radius_groups: radius_groups:
description: description:
- A list of radius group strings. - A list of radius group strings.
type: list
default: [] default: []
tacacs_groups: tacacs_groups:
description: description:
- A list of tacacs group strings. - A list of tacacs group strings.
type: list
default: [] default: []
extends_documentation_fragment: extends_documentation_fragment:

View file

@ -62,6 +62,7 @@ options:
remote device. The transport argument supports connectivity to the remote device. The transport argument supports connectivity to the
device over cli (ssh). device over cli (ssh).
required: true required: true
choices: [ cli, netconf ]
default: cli default: cli
""" """

View file

@ -13,14 +13,14 @@ notes:
options: options:
auth_key: auth_key:
description: description:
- Authentication key provided by the dashboard. Required if environmental variable MERAKI_KEY is not set. - Authentication key provided by the dashboard. Required if environmental variable C(MERAKI_KEY) is not set.
type: str type: str
host: host:
description: description:
- Hostname for Meraki dashboard. - Hostname for Meraki dashboard.
- Only useful for internal Meraki developers. - Only useful for internal Meraki developers.
type: str type: str
default: 'api.meraki.com' default: api.meraki.com
use_proxy: use_proxy:
description: description:
- If C(no), it will not use a proxy, even if one is defined in an environment variable on the target hosts. - If C(no), it will not use a proxy, even if one is defined in an environment variable on the target hosts.
@ -33,7 +33,7 @@ options:
default: yes default: yes
output_level: output_level:
description: description:
- Set amount of debug output during module execution - Set amount of debug output during module execution.
type: str type: str
choices: [ debug, normal ] choices: [ debug, normal ]
default: normal default: normal

View file

@ -90,6 +90,7 @@ options:
device over cli (ssh) or nxapi. device over cli (ssh) or nxapi.
type: str type: str
required: true required: true
choices: [ cli, nxapi ]
default: cli default: cli
use_ssl: use_ssl:
description: description:

View file

@ -4,7 +4,6 @@ lib/ansible/modules/cloud/amazon/aws_acm_facts.py E322
lib/ansible/modules/cloud/amazon/aws_acm_facts.py E323 lib/ansible/modules/cloud/amazon/aws_acm_facts.py E323
lib/ansible/modules/cloud/amazon/aws_api_gateway.py E322 lib/ansible/modules/cloud/amazon/aws_api_gateway.py E322
lib/ansible/modules/cloud/amazon/aws_application_scaling_policy.py E322 lib/ansible/modules/cloud/amazon/aws_application_scaling_policy.py E322
lib/ansible/modules/cloud/amazon/aws_application_scaling_policy.py E324
lib/ansible/modules/cloud/amazon/aws_application_scaling_policy.py E326 lib/ansible/modules/cloud/amazon/aws_application_scaling_policy.py E326
lib/ansible/modules/cloud/amazon/aws_direct_connect_gateway.py E322 lib/ansible/modules/cloud/amazon/aws_direct_connect_gateway.py E322
lib/ansible/modules/cloud/amazon/aws_direct_connect_gateway.py E324 lib/ansible/modules/cloud/amazon/aws_direct_connect_gateway.py E324
@ -30,7 +29,6 @@ lib/ansible/modules/cloud/amazon/ec2_eip.py E322
lib/ansible/modules/cloud/amazon/ec2_eip.py E324 lib/ansible/modules/cloud/amazon/ec2_eip.py E324
lib/ansible/modules/cloud/amazon/ec2_elb.py E326 lib/ansible/modules/cloud/amazon/ec2_elb.py E326
lib/ansible/modules/cloud/amazon/ec2_elb_facts.py E323 lib/ansible/modules/cloud/amazon/ec2_elb_facts.py E323
lib/ansible/modules/cloud/amazon/ec2_elb_lb.py E324
lib/ansible/modules/cloud/amazon/ec2_group.py E322 lib/ansible/modules/cloud/amazon/ec2_group.py E322
lib/ansible/modules/cloud/amazon/ec2_instance.py E324 lib/ansible/modules/cloud/amazon/ec2_instance.py E324
lib/ansible/modules/cloud/amazon/ec2_lc.py E322 lib/ansible/modules/cloud/amazon/ec2_lc.py E322
@ -720,7 +718,6 @@ lib/ansible/modules/notification/sendgrid.py E322
lib/ansible/modules/notification/slack.py E324 lib/ansible/modules/notification/slack.py E324
lib/ansible/modules/notification/snow_record.py E317 lib/ansible/modules/notification/snow_record.py E317
lib/ansible/modules/packaging/language/bundler.py E324 lib/ansible/modules/packaging/language/bundler.py E324
lib/ansible/modules/packaging/language/cpanm.py E324
lib/ansible/modules/packaging/language/easy_install.py E324 lib/ansible/modules/packaging/language/easy_install.py E324
lib/ansible/modules/packaging/language/maven_artifact.py E324 lib/ansible/modules/packaging/language/maven_artifact.py E324
lib/ansible/modules/packaging/language/pear.py E322 lib/ansible/modules/packaging/language/pear.py E322
@ -762,7 +759,6 @@ lib/ansible/modules/packaging/os/pulp_repo.py E322
lib/ansible/modules/packaging/os/pulp_repo.py E324 lib/ansible/modules/packaging/os/pulp_repo.py E324
lib/ansible/modules/packaging/os/rhn_channel.py E322 lib/ansible/modules/packaging/os/rhn_channel.py E322
lib/ansible/modules/packaging/os/rhn_channel.py E326 lib/ansible/modules/packaging/os/rhn_channel.py E326
lib/ansible/modules/packaging/os/rhn_register.py E324
lib/ansible/modules/packaging/os/rhsm_repository.py E324 lib/ansible/modules/packaging/os/rhsm_repository.py E324
lib/ansible/modules/packaging/os/slackpkg.py E322 lib/ansible/modules/packaging/os/slackpkg.py E322
lib/ansible/modules/packaging/os/slackpkg.py E324 lib/ansible/modules/packaging/os/slackpkg.py E324
@ -885,7 +881,6 @@ lib/ansible/modules/system/selinux_permissive.py E322
lib/ansible/modules/system/seport.py E324 lib/ansible/modules/system/seport.py E324
lib/ansible/modules/system/service.py E323 lib/ansible/modules/system/service.py E323
lib/ansible/modules/system/service.py E210 lib/ansible/modules/system/service.py E210
lib/ansible/modules/system/systemd.py E324
lib/ansible/modules/system/solaris_zone.py E324 lib/ansible/modules/system/solaris_zone.py E324
lib/ansible/modules/system/ufw.py E322 lib/ansible/modules/system/ufw.py E322
lib/ansible/modules/system/ufw.py E326 lib/ansible/modules/system/ufw.py E326