Module DOCUMENTATION should match argspec (#34895)

* Module DOCUMENTATION should match argspec

Large update of many modules so that DOCUMENTATION option name and
aliases match those defined in the argspec.

Issues identified by https://github.com/ansible/ansible/pull/34809

In addition to many typos and missing aliases, the following notable
changes were made:

* Create `module_docs_fragments/url.py` for `url_argument_spec`
* `dellos*_command` shouldn't have ever had `waitfor` (was incorrectly copied)
* `ce_aaa_server_host.py` `s/raduis_server_type/radius_server_type/g`
* `Junos_lldp` enable should be part of `state`.
This commit is contained in:
John R Barker
2018-01-16 12:18:51 +00:00
committed by GitHub
parent c386ae9498
commit 195beebcb4
123 changed files with 406 additions and 132 deletions

View File

@@ -26,7 +26,6 @@ options:
description:
- IP tunnel interface name.
required: true
aliases: [ "tunnel", "link" ]
temporary:
description:
- Specifies that the IP tunnel interface is temporary. Temporary IP tunnel
@@ -39,6 +38,7 @@ options:
required: false
default: "ipv4"
choices: [ "ipv4", "ipv6", "6to4" ]
aliases: ['tunnel_type']
local_address:
description:
- Literat IP address or hostname corresponding to the tunnel source.

View File

@@ -36,7 +36,7 @@ options:
description:
- Identifies a network flow by the local IP address.
required: false
remove_ip:
remote_ip:
description:
- Identifies a network flow by the remote IP address.
required: false

View File

@@ -191,7 +191,7 @@ class AddrProp(object):
def main():
module = AnsibleModule(
argument_spec=dict(
addrobj=dict(required=True, default=None, aliases=['nic, interface']),
addrobj=dict(required=True, default=None, aliases=['nic', 'interface']),
property=dict(required=True, aliases=['name']),
value=dict(required=False),
temporary=dict(default=False, type='bool'),