Docs: Avoid use of 'default: null' (#45795)

Various modules document the default 'null' value, but it causes None to
be shown in the documentation explicitly.
pull/45879/head
Dag Wieers 6 years ago committed by Alicia Cozine
parent 2097d25506
commit 2edf20d1ed

@ -1,4 +1,5 @@
#!/usr/bin/python #!/usr/bin/python
# Copyright: (c) 2017, Ansible Project # Copyright: (c) 2017, Ansible Project
# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)
@ -33,8 +34,6 @@ options:
create_timeout: create_timeout:
description: description:
- The amount of time (in minutes) that can pass before the stack status becomes CREATE_FAILED - The amount of time (in minutes) that can pass before the stack status becomes CREATE_FAILED
required: false
default: null
version_added: "2.6" version_added: "2.6"
template_parameters: template_parameters:
description: description:
@ -82,6 +81,7 @@ options:
See the AWS Change Sets docs U(http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-changesets.html). See the AWS Change Sets docs U(http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-changesets.html).
WARNING: if the stack does not exist, it will be created without changeset. If the state is absent, the stack will be deleted immediately with no WARNING: if the stack does not exist, it will be created without changeset. If the state is absent, the stack will be deleted immediately with no
changeset." changeset."
type: bool
default: 'no' default: 'no'
version_added: "2.4" version_added: "2.4"
changeset_name: changeset_name:

@ -2,19 +2,7 @@
# coding: utf-8 -*- # coding: utf-8 -*-
# Copyright (c) 2016, Mario Santos <mario.rf.santos@gmail.com> # Copyright (c) 2016, Mario Santos <mario.rf.santos@gmail.com>
# # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)
# This module is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This software is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this software. If not, see <http://www.gnu.org/licenses/>.
from __future__ import absolute_import, division, print_function from __future__ import absolute_import, division, print_function
__metaclass__ = type __metaclass__ = type
@ -42,8 +30,6 @@ options:
display_description: display_description:
description: description:
- String describing the snapshot - String describing the snapshot
required: false
default: null
aliases: ['description'] aliases: ['description']
volume: volume:
description: description:
@ -53,9 +39,8 @@ options:
description: description:
- Allows or disallows snapshot of a volume to be created when the volume - Allows or disallows snapshot of a volume to be created when the volume
is attached to an instance. is attached to an instance.
required: false
default: False
type: bool type: bool
default: 'no'
state: state:
description: description:
- Should the resource be present or absent. - Should the resource be present or absent.
@ -64,7 +49,6 @@ options:
availability_zone: availability_zone:
description: description:
- Availability zone in which to create the snapshot. - Availability zone in which to create the snapshot.
required: false
requirements: requirements:
- "python >= 2.7" - "python >= 2.7"
- "openstacksdk" - "openstacksdk"

@ -1,7 +1,7 @@
#!/usr/bin/python #!/usr/bin/python
# -*- coding: utf-8 -*- # -*- coding: utf-8 -*-
# (c) 2015, Sebastian Kornehl <sebastian.kornehl@asideas.de> # Copyright: (c) 2015, Sebastian Kornehl <sebastian.kornehl@asideas.de>
# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)
from __future__ import absolute_import, division, print_function from __future__ import absolute_import, division, print_function
@ -62,7 +62,6 @@ options:
description: description:
- The number of minutes before a monitor will notify when data stops reporting. Must be at least 2x the monitor timeframe for metric - The number of minutes before a monitor will notify when data stops reporting. Must be at least 2x the monitor timeframe for metric
alerts or 2 minutes for service checks. alerts or 2 minutes for service checks.
required: false
default: 2x timeframe for metric, 2 minutes for service default: 2x timeframe for metric, 2 minutes for service
timeout_h: timeout_h:
description: ["The number of hours of the monitor not reporting data before it will automatically resolve from a triggered state."] description: ["The number of hours of the monitor not reporting data before it will automatically resolve from a triggered state."]
@ -99,8 +98,6 @@ options:
version_added: "2.4" version_added: "2.4"
evaluation_delay: evaluation_delay:
description: ["Time to delay evaluation (in seconds). It is effective for sparse values."] description: ["Time to delay evaluation (in seconds). It is effective for sparse values."]
required: false
default: null
version_added: "2.7" version_added: "2.7"
id: id:
description: ["The id of the alert. If set, will be used instead of the name to locate the alert."] description: ["The id of the alert. If set, will be used instead of the name to locate the alert."]

@ -2,7 +2,6 @@
# -*- coding: utf-8 -*- # -*- coding: utf-8 -*-
# Copyright: (c) 2017-2018, Keller Fuchs <kellerfuchs@hashbang.sh> # Copyright: (c) 2017-2018, Keller Fuchs <kellerfuchs@hashbang.sh>
#
# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)
from __future__ import absolute_import, division, print_function from __future__ import absolute_import, division, print_function
@ -39,7 +38,6 @@ requirements:
options: options:
passwd: passwd:
required: true required: true
default: null
description: description:
- The (plaintext) password to be set for I(dn). - The (plaintext) password to be set for I(dn).
extends_documentation_fragment: ldap.documentation extends_documentation_fragment: ldap.documentation

@ -1,20 +1,6 @@
#!/usr/bin/python #!/usr/bin/python
#
# This file is part of Ansible # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)
#
# Ansible is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# Ansible is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with Ansible. If not, see <http://www.gnu.org/licenses/>.
#
from __future__ import absolute_import, division, print_function from __future__ import absolute_import, division, print_function
__metaclass__ = type __metaclass__ = type
@ -57,7 +43,6 @@ options:
before moving forward. If the conditional is not true before moving forward. If the conditional is not true
within the configured number of retries, the task fails. within the configured number of retries, the task fails.
See examples. See examples.
default: null
match: match:
description: description:
- The I(match) argument is used in conjunction with the - The I(match) argument is used in conjunction with the

@ -1,22 +1,8 @@
#!/usr/bin/python #!/usr/bin/python
#
# (c) 2018 Extreme Networks Inc. # Copyright: (c) 2018, Extreme Networks Inc.
# # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)
# This file is part of Ansible
#
# Ansible is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# Ansible is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with Ansible. If not, see <http://www.gnu.org/licenses/>.
#
from __future__ import (absolute_import, division, print_function) from __future__ import (absolute_import, division, print_function)
ANSIBLE_METADATA = {'metadata_version': '1.1', ANSIBLE_METADATA = {'metadata_version': '1.1',
'status': ['preview'], 'status': ['preview'],
@ -43,7 +29,6 @@ options:
in the device running-config. Be sure to note the configuration in the device running-config. Be sure to note the configuration
command syntax as some commands are automatically modified by the command syntax as some commands are automatically modified by the
device config parser. device config parser.
default: null
aliases: ['commands'] aliases: ['commands']
src: src:
description: description:
@ -52,7 +37,6 @@ options:
either be the full path on the Ansible control host or a relative either be the full path on the Ansible control host or a relative
path from the playbook or role root directory. This argument is mutually path from the playbook or role root directory. This argument is mutually
exclusive with I(lines). exclusive with I(lines).
default: null
before: before:
description: description:
- The ordered set of commands to push on to the command stack if - The ordered set of commands to push on to the command stack if
@ -60,14 +44,12 @@ options:
the opportunity to perform configuration commands prior to pushing the opportunity to perform configuration commands prior to pushing
any changes without affecting how the set of commands are matched any changes without affecting how the set of commands are matched
against the system. against the system.
default: null
after: after:
description: description:
- The ordered set of commands to append to the end of the command - The ordered set of commands to append to the end of the command
stack if a change needs to be made. Just like with I(before) this stack if a change needs to be made. Just like with I(before) this
allows the playbook designer to append a set of commands to be allows the playbook designer to append a set of commands to be
executed after the command set. executed after the command set.
default: null
match: match:
description: description:
- Instructs the module on the way to perform the matching of - Instructs the module on the way to perform the matching of
@ -97,8 +79,8 @@ options:
changes are made. The backup file is written to the C(backup) changes are made. The backup file is written to the C(backup)
folder in the playbook root directory. If the directory does not folder in the playbook root directory. If the directory does not
exist, it is created. exist, it is created.
default: no
type: bool type: bool
default: 'no'
running_config: running_config:
description: description:
- The module, by default, will connect to the remote device and - The module, by default, will connect to the remote device and
@ -108,7 +90,6 @@ options:
every task in a playbook. The I(running_config) argument allows the every task in a playbook. The I(running_config) argument allows the
implementer to pass in the configuration to use as the base implementer to pass in the configuration to use as the base
config for comparison. config for comparison.
default: null
aliases: ['config'] aliases: ['config']
defaults: defaults:
description: description:

@ -1,21 +1,7 @@
#!/usr/bin/python #!/usr/bin/python
# Copyright 2018 Fortinet, Inc.
# # Copyright: (c) 2018, Fortinet, Inc.
# This program is free software: you can redistribute it and/or modify # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <https://www.gnu.org/licenses/>.
#
# the lib use python logging can get it if the following is set in your
# Ansible config.
from __future__ import (absolute_import, division, print_function) from __future__ import (absolute_import, division, print_function)
@ -67,7 +53,6 @@ options:
description: description:
- Container for a group of url entries that the FortiGate - Container for a group of url entries that the FortiGate
must act upon must act upon
default: null
suboptions: suboptions:
id: id:
description: description:
@ -80,7 +65,6 @@ options:
comment: comment:
description: description:
- Optional comments. - Optional comments.
default: null
one-arm-ips-urlfilter: one-arm-ips-urlfilter:
description: description:
- Enable/disable DNS resolver for one-arm IPS URL filter operation. - Enable/disable DNS resolver for one-arm IPS URL filter operation.
@ -169,7 +153,6 @@ options:
description: description:
- Container for a group of content-filtering entries that - Container for a group of content-filtering entries that
the FortiGate must act upon the FortiGate must act upon
default: null
suboptions: suboptions:
id: id:
description: description:
@ -181,7 +164,6 @@ options:
comment: comment:
description: description:
- Optional comments. - Optional comments.
default: null
entries: entries:
description: description:
- Content filter entries. - Content filter entries.

@ -1,22 +1,8 @@
#!/usr/bin/python #!/usr/bin/python
#
# (c) 2018 Extreme Networks Inc. # Copyright: (c) 2018, Extreme Networks Inc.
# # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)
# This file is part of Ansible
#
# Ansible is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# Ansible is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with Ansible. If not, see <http://www.gnu.org/licenses/>.
#
from __future__ import (absolute_import, division, print_function) from __future__ import (absolute_import, division, print_function)
ANSIBLE_METADATA = {'metadata_version': '1.1', ANSIBLE_METADATA = {'metadata_version': '1.1',
'status': ['preview'], 'status': ['preview'],
@ -56,7 +42,6 @@ options:
before moving forward. If the conditional is not true before moving forward. If the conditional is not true
within the configured number of retries, the task fails. within the configured number of retries, the task fails.
See examples. See examples.
default: null
match: match:
description: description:
- The I(match) argument is used in conjunction with the - The I(match) argument is used in conjunction with the
@ -65,7 +50,6 @@ options:
then all conditionals in the wait_for must be satisfied. If then all conditionals in the wait_for must be satisfied. If
the value is set to C(any) then only one of the values must be the value is set to C(any) then only one of the values must be
satisfied. satisfied.
required: false
default: all default: all
choices: ['any', 'all'] choices: ['any', 'all']
retries: retries:
@ -74,7 +58,6 @@ options:
before it is considered failed. The command is run on the before it is considered failed. The command is run on the
target device every retry and evaluated against the target device every retry and evaluated against the
I(wait_for) conditions. I(wait_for) conditions.
required: false
default: 10 default: 10
interval: interval:
description: description:
@ -82,7 +65,6 @@ options:
of the command. If the command does not pass the specified of the command. If the command does not pass the specified
conditions, the interval indicates how long to wait before conditions, the interval indicates how long to wait before
trying the command again. trying the command again.
required: false
default: 1 default: 1
""" """

@ -1,22 +1,8 @@
#!/usr/bin/python #!/usr/bin/python
#
# (c) 2018 Extreme Networks Inc. # Copyright: (c) 2018, Extreme Networks Inc.
# # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)
# This file is part of Ansible
#
# Ansible is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# Ansible is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with Ansible. If not, see <http://www.gnu.org/licenses/>.
#
from __future__ import (absolute_import, division, print_function) from __future__ import (absolute_import, division, print_function)
ANSIBLE_METADATA = {'metadata_version': '1.1', ANSIBLE_METADATA = {'metadata_version': '1.1',
'status': ['preview'], 'status': ['preview'],
@ -44,7 +30,6 @@ options:
in the device running-config. Be sure to note the configuration in the device running-config. Be sure to note the configuration
command syntax as some commands are automatically modified by the command syntax as some commands are automatically modified by the
device config parser. device config parser.
default: null
aliases: ['commands'] aliases: ['commands']
parents: parents:
description: description:
@ -52,7 +37,6 @@ options:
the commands should be checked against. If the parents argument the commands should be checked against. If the parents argument
is omitted, the commands are checked against the set of top is omitted, the commands are checked against the set of top
level or global commands. level or global commands.
default: null
src: src:
description: description:
- Specifies the source path to the file that contains the configuration - Specifies the source path to the file that contains the configuration
@ -60,7 +44,6 @@ options:
either be the full path on the Ansible control host or a relative either be the full path on the Ansible control host or a relative
path from the playbook or role root directory. This argument is mutually path from the playbook or role root directory. This argument is mutually
exclusive with I(lines), I(parents). exclusive with I(lines), I(parents).
default: null
before: before:
description: description:
- The ordered set of commands to push on to the command stack if - The ordered set of commands to push on to the command stack if
@ -68,14 +51,12 @@ options:
the opportunity to perform configuration commands prior to pushing the opportunity to perform configuration commands prior to pushing
any changes without affecting how the set of commands are matched any changes without affecting how the set of commands are matched
against the system. against the system.
default: null
after: after:
description: description:
- The ordered set of commands to append to the end of the command - The ordered set of commands to append to the end of the command
stack if a change needs to be made. Just like with I(before) this stack if a change needs to be made. Just like with I(before) this
allows the playbook designer to append a set of commands to be allows the playbook designer to append a set of commands to be
executed after the command set. executed after the command set.
default: null
match: match:
description: description:
- Instructs the module on the way to perform the matching of - Instructs the module on the way to perform the matching of
@ -112,8 +93,8 @@ options:
changes are made. The backup file is written to the C(backup) changes are made. The backup file is written to the C(backup)
folder in the playbook root directory. If the directory does not folder in the playbook root directory. If the directory does not
exist, it is created. exist, it is created.
default: no
type: bool type: bool
default: 'no'
running_config: running_config:
description: description:
- The module, by default, will connect to the remote device and - The module, by default, will connect to the remote device and
@ -123,7 +104,6 @@ options:
every task in a playbook. The I(running_config) argument allows the every task in a playbook. The I(running_config) argument allows the
implementer to pass in the configuration to use as the base implementer to pass in the configuration to use as the base
config for comparison. config for comparison.
default: null
aliases: ['config'] aliases: ['config']
diff_against: diff_against:
description: description:

@ -1,20 +1,7 @@
#!/usr/bin/python #!/usr/bin/python
#
# This file is part of Ansible # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)
#
# Ansible is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# Ansible is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with Ansible. If not, see <http://www.gnu.org/licenses/>.
#
from __future__ import (absolute_import, division, print_function) from __future__ import (absolute_import, division, print_function)
__metaclass__ = type __metaclass__ = type
@ -50,8 +37,6 @@ options:
before moving forward. If the conditional is not true before moving forward. If the conditional is not true
within the configured number of retries, the task fails. within the configured number of retries, the task fails.
See examples. See examples.
required: false
default: null
match: match:
description: description:
- The I(match) argument is used in conjunction with the - The I(match) argument is used in conjunction with the
@ -60,7 +45,6 @@ options:
then all conditionals in the wait_for must be satisfied. If then all conditionals in the wait_for must be satisfied. If
the value is set to C(any) then only one of the values must be the value is set to C(any) then only one of the values must be
satisfied. satisfied.
required: false
default: all default: all
choices: ['any', 'all'] choices: ['any', 'all']
retries: retries:
@ -69,7 +53,6 @@ options:
before it is considered failed. The command is run on the before it is considered failed. The command is run on the
target device every retry and evaluated against the target device every retry and evaluated against the
I(wait_for) conditions. I(wait_for) conditions.
required: false
default: 10 default: 10
interval: interval:
description: description:
@ -77,7 +60,6 @@ options:
of the command. If the command does not pass the specified of the command. If the command does not pass the specified
conditions, the interval indicates how long to wait before conditions, the interval indicates how long to wait before
trying the command again. trying the command again.
required: false
default: 1 default: 1
""" """

@ -1,22 +1,8 @@
#!/usr/bin/python #!/usr/bin/python
#
# (c) 2018 Extreme Networks Inc. # Copyright: (c) 2018, Extreme Networks Inc.
# # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)
# This file is part of Ansible
#
# Ansible is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# Ansible is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with Ansible. If not, see <http://www.gnu.org/licenses/>.
#
from __future__ import (absolute_import, division, print_function) from __future__ import (absolute_import, division, print_function)
ANSIBLE_METADATA = {'metadata_version': '1.1', ANSIBLE_METADATA = {'metadata_version': '1.1',
'status': ['preview'], 'status': ['preview'],
@ -56,7 +42,6 @@ options:
before moving forward. If the conditional is not true before moving forward. If the conditional is not true
within the configured number of retries, the task fails. within the configured number of retries, the task fails.
See examples. See examples.
default: null
match: match:
description: description:
- The I(match) argument is used in conjunction with the - The I(match) argument is used in conjunction with the
@ -65,7 +50,6 @@ options:
then all conditionals in the wait_for must be satisfied. If then all conditionals in the wait_for must be satisfied. If
the value is set to C(any) then only one of the values must be the value is set to C(any) then only one of the values must be
satisfied. satisfied.
required: false
default: all default: all
choices: ['any', 'all'] choices: ['any', 'all']
retries: retries:
@ -74,7 +58,6 @@ options:
before it is considered failed. The command is run on the before it is considered failed. The command is run on the
target device every retry and evaluated against the target device every retry and evaluated against the
I(wait_for) conditions. I(wait_for) conditions.
required: false
default: 10 default: 10
interval: interval:
description: description:
@ -82,7 +65,6 @@ options:
of the command. If the command does not pass the specified of the command. If the command does not pass the specified
conditions, the interval indicates how long to wait before conditions, the interval indicates how long to wait before
trying the command again. trying the command again.
required: false
default: 1 default: 1
""" """

@ -1,22 +1,8 @@
#!/usr/bin/python #!/usr/bin/python
#
# (c) 2018 Extreme Networks Inc. # Copyright: (c) 2018, Extreme Networks Inc.
# # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)
# This file is part of Ansible
#
# Ansible is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# Ansible is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with Ansible. If not, see <http://www.gnu.org/licenses/>.
#
from __future__ import (absolute_import, division, print_function) from __future__ import (absolute_import, division, print_function)
ANSIBLE_METADATA = {'metadata_version': '1.1', ANSIBLE_METADATA = {'metadata_version': '1.1',
'status': ['preview'], 'status': ['preview'],
@ -44,7 +30,6 @@ options:
in the device running-config. Be sure to note the configuration in the device running-config. Be sure to note the configuration
command syntax as some commands are automatically modified by the command syntax as some commands are automatically modified by the
device config parser. device config parser.
default: null
aliases: ['commands'] aliases: ['commands']
parents: parents:
description: description:
@ -52,7 +37,6 @@ options:
the commands should be checked against. If the parents argument the commands should be checked against. If the parents argument
is omitted, the commands are checked against the set of top is omitted, the commands are checked against the set of top
level or global commands. level or global commands.
default: null
src: src:
description: description:
- Specifies the source path to the file that contains the configuration - Specifies the source path to the file that contains the configuration
@ -60,7 +44,6 @@ options:
either be the full path on the Ansible control host or a relative either be the full path on the Ansible control host or a relative
path from the playbook or role root directory. This argument is mutually path from the playbook or role root directory. This argument is mutually
exclusive with I(lines), I(parents). exclusive with I(lines), I(parents).
default: null
before: before:
description: description:
- The ordered set of commands to push on to the command stack if - The ordered set of commands to push on to the command stack if
@ -68,14 +51,12 @@ options:
the opportunity to perform configuration commands prior to pushing the opportunity to perform configuration commands prior to pushing
any changes without affecting how the set of commands are matched any changes without affecting how the set of commands are matched
against the system. against the system.
default: null
after: after:
description: description:
- The ordered set of commands to append to the end of the command - The ordered set of commands to append to the end of the command
stack if a change needs to be made. Just like with I(before) this stack if a change needs to be made. Just like with I(before) this
allows the playbook designer to append a set of commands to be allows the playbook designer to append a set of commands to be
executed after the command set. executed after the command set.
default: null
match: match:
description: description:
- Instructs the module on the way to perform the matching of - Instructs the module on the way to perform the matching of
@ -112,8 +93,8 @@ options:
changes are made. The backup file is written to the C(backup) changes are made. The backup file is written to the C(backup)
folder in the playbook root directory. If the directory does not folder in the playbook root directory. If the directory does not
exist, it is created. exist, it is created.
default: no
type: bool type: bool
default: 'no'
running_config: running_config:
description: description:
- The module, by default, will connect to the remote device and - The module, by default, will connect to the remote device and
@ -123,7 +104,6 @@ options:
every task in a playbook. The I(running_config) argument allows the every task in a playbook. The I(running_config) argument allows the
implementer to pass in the configuration to use as the base implementer to pass in the configuration to use as the base
config for comparison. config for comparison.
default: null
aliases: ['config'] aliases: ['config']
defaults: defaults:
description: description:

@ -77,9 +77,7 @@ options:
description: description:
- Specifies an alternative release from which all packages will be - Specifies an alternative release from which all packages will be
installed. installed.
required: false
version_added: "2.6" version_added: "2.6"
default: null
autoremove: autoremove:
description: description:
@ -87,7 +85,7 @@ options:
installed as dependencies of user-installed packages but which are no longer installed as dependencies of user-installed packages but which are no longer
required by any such package. Should be used alone or when state is I(absent) required by any such package. Should be used alone or when state is I(absent)
type: bool type: bool
default: false default: "no"
version_added: "2.4" version_added: "2.4"
exclude: exclude:
description: description:
@ -112,7 +110,6 @@ options:
description: description:
- When using latest, only update installed packages. Do not install packages. - When using latest, only update installed packages. Do not install packages.
- Has an effect only if state is I(latest) - Has an effect only if state is I(latest)
required: false
default: "no" default: "no"
type: bool type: bool
version_added: "2.7" version_added: "2.7"
@ -125,7 +122,6 @@ options:
bugfix: bugfix:
description: description:
- If set to C(yes), and C(state=latest) then only installs updates that have been marked bugfix related. - If set to C(yes), and C(state=latest) then only installs updates that have been marked bugfix related.
required: false
default: "no" default: "no"
type: bool type: bool
version_added: "2.7" version_added: "2.7"
@ -133,13 +129,11 @@ options:
description: description:
- I(Plugin) name to enable for the install/update operation. - I(Plugin) name to enable for the install/update operation.
The enabled plugin will not persist beyond the transaction. The enabled plugin will not persist beyond the transaction.
required: false
version_added: "2.7" version_added: "2.7"
disable_plugin: disable_plugin:
description: description:
- I(Plugin) name to disable for the install/update operation. - I(Plugin) name to disable for the install/update operation.
The disabled plugins will not persist beyond the transaction. The disabled plugins will not persist beyond the transaction.
required: false
version_added: "2.7" version_added: "2.7"
disable_excludes: disable_excludes:
description: description:
@ -147,7 +141,6 @@ options:
- If set to C(all), disables all excludes. - If set to C(all), disables all excludes.
- If set to C(main), disable excludes defined in [main] in yum.conf. - If set to C(main), disable excludes defined in [main] in yum.conf.
- If set to C(repoid), disable excludes defined for given repo id. - If set to C(repoid), disable excludes defined for given repo id.
required: false
choices: [ all, main, repoid ] choices: [ all, main, repoid ]
version_added: "2.7" version_added: "2.7"
validate_certs: validate_certs:
@ -168,19 +161,18 @@ options:
package and others can cause changes to the packages which were package and others can cause changes to the packages which were
in the earlier transaction). in the earlier transaction).
type: bool type: bool
default: False default: "no"
version_added: "2.7" version_added: "2.7"
install_repoquery: install_repoquery:
description: description:
- This is effectively a no-op in DNF as it is not needed with DNF, but is an accepted parameter for feature - This is effectively a no-op in DNF as it is not needed with DNF, but is an accepted parameter for feature
parity/compatibility with the I(yum) module. parity/compatibility with the I(yum) module.
type: bool type: bool
default: True default: "yes"
version_added: "2.7" version_added: "2.7"
download_only: download_only:
description: description:
- Only download the packages, do not install them. - Only download the packages, do not install them.
required: false
default: "no" default: "no"
type: bool type: bool
version_added: "2.7" version_added: "2.7"

@ -29,7 +29,6 @@ options:
upstream yum developers. As of Ansible 2.7+, this module also supports C(YUM4), which is the upstream yum developers. As of Ansible 2.7+, this module also supports C(YUM4), which is the
"new yum" and it has an C(dnf) backend. "new yum" and it has an C(dnf) backend.
- By default, this module will select the backend based on the C(ansible_pkg_mgr) fact. - By default, this module will select the backend based on the C(ansible_pkg_mgr) fact.
required: false
default: "auto" default: "auto"
choices: [ auto, yum, yum4, dnf ] choices: [ auto, yum, yum4, dnf ]
version_added: "2.7" version_added: "2.7"
@ -112,7 +111,6 @@ options:
description: description:
- When using latest, only update installed packages. Do not install packages. - When using latest, only update installed packages. Do not install packages.
- Has an effect only if state is I(latest) - Has an effect only if state is I(latest)
required: false
default: "no" default: "no"
type: bool type: bool
version_added: "2.5" version_added: "2.5"
@ -132,7 +130,6 @@ options:
bugfix: bugfix:
description: description:
- If set to C(yes), and C(state=latest) then only installs updates that have been marked bugfix related. - If set to C(yes), and C(state=latest) then only installs updates that have been marked bugfix related.
required: false
default: "no" default: "no"
version_added: "2.6" version_added: "2.6"
allow_downgrade: allow_downgrade:
@ -152,21 +149,17 @@ options:
description: description:
- I(Plugin) name to enable for the install/update operation. - I(Plugin) name to enable for the install/update operation.
The enabled plugin will not persist beyond the transaction. The enabled plugin will not persist beyond the transaction.
required: false
version_added: "2.5" version_added: "2.5"
disable_plugin: disable_plugin:
description: description:
- I(Plugin) name to disable for the install/update operation. - I(Plugin) name to disable for the install/update operation.
The disabled plugins will not persist beyond the transaction. The disabled plugins will not persist beyond the transaction.
required: false
version_added: "2.5" version_added: "2.5"
releasever: releasever:
description: description:
- Specifies an alternative release from which all packages will be - Specifies an alternative release from which all packages will be
installed. installed.
required: false
version_added: "2.7" version_added: "2.7"
default: null
autoremove: autoremove:
description: description:
- If C(yes), removes all "leaf" packages from the system that were originally - If C(yes), removes all "leaf" packages from the system that were originally
@ -174,7 +167,7 @@ options:
required by any such package. Should be used alone or when state is I(absent) required by any such package. Should be used alone or when state is I(absent)
- "NOTE: This feature requires yum >= 3.4.3 (RHEL/CentOS 7+)" - "NOTE: This feature requires yum >= 3.4.3 (RHEL/CentOS 7+)"
type: bool type: bool
default: false default: "no"
version_added: "2.7" version_added: "2.7"
disable_excludes: disable_excludes:
description: description:
@ -182,13 +175,11 @@ options:
- If set to C(all), disables all excludes. - If set to C(all), disables all excludes.
- If set to C(main), disable excludes defined in [main] in yum.conf. - If set to C(main), disable excludes defined in [main] in yum.conf.
- If set to C(repoid), disable excludes defined for given repo id. - If set to C(repoid), disable excludes defined for given repo id.
required: false
choices: [ all, main, repoid ] choices: [ all, main, repoid ]
version_added: "2.7" version_added: "2.7"
download_only: download_only:
description: description:
- Only download the packages, do not install them. - Only download the packages, do not install them.
required: false
default: "no" default: "no"
type: bool type: bool
version_added: "2.7" version_added: "2.7"

@ -1,5 +1,6 @@
#!/usr/bin/python #!/usr/bin/python
# (c) 2015, Werner Dijkerman (ikben@werner-dijkerman.nl)
# Copyright: (c) 2015, Werner Dijkerman (ikben@werner-dijkerman.nl)
# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)
from __future__ import absolute_import, division, print_function from __future__ import absolute_import, division, print_function
@ -29,25 +30,19 @@ options:
validate_certs: validate_certs:
description: description:
- When using https if SSL certificate needs to be verified. - When using https if SSL certificate needs to be verified.
required: false type: bool
default: true default: 'yes'
aliases: aliases:
- verify_ssl - verify_ssl
login_user: login_user:
description: description:
- Gitlab user name. - Gitlab user name.
required: false
default: null
login_password: login_password:
description: description:
- Gitlab password for login_user - Gitlab password for login_user
required: false
default: null
login_token: login_token:
description: description:
- Gitlab token for logging in. - Gitlab token for logging in.
required: false
default: null
name: name:
description: description:
- Name of the group you want to create. - Name of the group you want to create.
@ -56,19 +51,14 @@ options:
description: description:
- The path of the group you want to create, this will be server_url/group_path - The path of the group you want to create, this will be server_url/group_path
- If not supplied, the group_name will be used. - If not supplied, the group_name will be used.
required: false
default: null
description: description:
description: description:
- A description for the group. - A description for the group.
required: false
default: null
version_added: "2.7" version_added: "2.7"
state: state:
description: description:
- create or delete group. - create or delete group.
- Possible values are present and absent. - Possible values are present and absent.
required: false
default: "present" default: "present"
choices: ["present", "absent"] choices: ["present", "absent"]
''' '''

@ -1,7 +1,7 @@
#!/usr/bin/python #!/usr/bin/python
# coding: utf-8 -*- # coding: utf-8 -*-
# (c) 2017, Wayne Witzel III <wayne@riotousliving.com> # Copyright: (c) 2017, Wayne Witzel III <wayne@riotousliving.com>
# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)
from __future__ import absolute_import, division, print_function from __future__ import absolute_import, division, print_function
@ -74,13 +74,9 @@ options:
client: client:
description: description:
- Client or application ID for azure_rm type. - Client or application ID for azure_rm type.
required: False
default: null
security_token: security_token:
description: description:
- STS token for aws type. - STS token for aws type.
required: False
default: null
version_added: "2.6" version_added: "2.6"
secret: secret:
description: description:

@ -1,9 +1,8 @@
#!/usr/bin/python #!/usr/bin/python
# coding: utf-8 -*- # coding: utf-8 -*-
#
# (c) 2018, Adrien Fleury <fleu42@gmail.com> # Copyright: (c) 2018, Adrien Fleury <fleu42@gmail.com>
# GNU General Public License v3.0+ # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)
# (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)
from __future__ import absolute_import, division, print_function from __future__ import absolute_import, division, print_function
__metaclass__ = type __metaclass__ = type
@ -31,8 +30,6 @@ options:
description: description:
description: description:
- The description to use for the inventory source. - The description to use for the inventory source.
required: False
default: null
inventory: inventory:
description: description:
- The inventory the source is linked to. - The inventory the source is linked to.
@ -58,7 +55,6 @@ options:
credential: credential:
description: description:
- Credential to use to retrieve the inventory from. - Credential to use to retrieve the inventory from.
required: False
source_vars: source_vars:
description: description:
- >- - >-
@ -66,24 +62,20 @@ options:
file. For example with Openstack, specifying *private: false* would file. For example with Openstack, specifying *private: false* would
change the output of the openstack.py script. It has to be YAML or change the output of the openstack.py script. It has to be YAML or
JSON. JSON.
required: False
timeout: timeout:
description: description:
- Number in seconds after which the Tower API methods will time out. - Number in seconds after which the Tower API methods will time out.
source_project: source_project:
description: description:
- Use a *project* as a source for the *inventory*. - Use a *project* as a source for the *inventory*.
required: False
source_path: source_path:
description: description:
- Path to the file to use as a source in the selected *project*. - Path to the file to use as a source in the selected *project*.
required: False
update_on_project_update: update_on_project_update:
description: description:
- >- - >-
That parameter will sync the inventory when the project is synced. It That parameter will sync the inventory when the project is synced. It
can only be used with a SCM source. can only be used with a SCM source.
required: False
type: bool type: bool
source_regions: source_regions:
description: description:
@ -91,27 +83,23 @@ options:
List of regions for your cloud provider. You can include multiple all List of regions for your cloud provider. You can include multiple all
regions. Only Hosts associated with the selected regions will be regions. Only Hosts associated with the selected regions will be
updated. Refer to Ansible Tower documentation for more detail. updated. Refer to Ansible Tower documentation for more detail.
required: False
instance_filters: instance_filters:
description: description:
- >- - >-
Provide a comma-separated list of filter expressions. Hosts are Provide a comma-separated list of filter expressions. Hosts are
imported when all of the filters match. Refer to Ansible Tower imported when all of the filters match. Refer to Ansible Tower
documentation for more detail. documentation for more detail.
required: False
group_by: group_by:
description: description:
- >- - >-
Specify which groups to create automatically. Group names will be Specify which groups to create automatically. Group names will be
created similar to the options selected. If blank, all groups above created similar to the options selected. If blank, all groups above
are created. Refer to Ansible Tower documentation for more detail. are created. Refer to Ansible Tower documentation for more detail.
required: False
source_script: source_script:
description: description:
- >- - >-
The source custom script to use to build the inventory. It needs to The source custom script to use to build the inventory. It needs to
exist. exist.
required: False
overwrite: overwrite:
description: description:
- >- - >-
@ -123,7 +111,6 @@ options:
left in the "all" default group for the inventory. When not checked, left in the "all" default group for the inventory. When not checked,
local child hosts and groups not found on the external source will local child hosts and groups not found on the external source will
remain untouched by the inventory update process. remain untouched by the inventory update process.
required: False
type: bool type: bool
overwrite_vars: overwrite_vars:
description: description:
@ -132,14 +119,12 @@ options:
and replaced by those found on the external source. When not checked, and replaced by those found on the external source. When not checked,
a merge will be performed, combining local variables with those found a merge will be performed, combining local variables with those found
on the external source. on the external source.
required: False
type: bool type: bool
update_on_launch: update_on_launch:
description: description:
- >- - >-
Each time a job runs using this inventory, refresh the inventory from Each time a job runs using this inventory, refresh the inventory from
the selected source before executing job tasks. the selected source before executing job tasks.
required: False
type: bool type: bool
update_cache_timeout: update_cache_timeout:
description: description:
@ -148,17 +133,14 @@ options:
job runs and callbacks the task system will evaluate the timestamp of job runs and callbacks the task system will evaluate the timestamp of
the latest sync. If it is older than Cache Timeout, it is not the latest sync. If it is older than Cache Timeout, it is not
considered current, and a new inventory sync will be performed. considered current, and a new inventory sync will be performed.
required: False
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"]
tower_verify_ssl: tower_verify_ssl:
description: description:
- Tower option to avoid certificates check. - Tower option to avoid certificates check.
required: False
type: bool type: bool
extends_documentation_fragment: tower extends_documentation_fragment: tower
''' '''

@ -1,9 +1,8 @@
#!/usr/bin/python #!/usr/bin/python
# coding: utf-8 -*- # coding: utf-8 -*-
#
# (c) 2018, Adrien Fleury <fleu42@gmail.com> # Copyright: (c) 2018, Adrien Fleury <fleu42@gmail.com>
# GNU General Public License v3.0+ # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)
# (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)
from __future__ import absolute_import, division, print_function from __future__ import absolute_import, division, print_function
__metaclass__ = type __metaclass__ = type
@ -27,18 +26,13 @@ options:
allow_simultaneous: allow_simultaneous:
description: description:
- If enabled, simultaneous runs of this job template will be allowed. - If enabled, simultaneous runs of this job template will be allowed.
required: False
type: bool type: bool
description: description:
description: description:
- The description to use for the workflow. - The description to use for the workflow.
required: False
default: null
extra_vars: extra_vars:
description: description:
- > - Extra variables used by Ansible in YAML or key=value format.
Extra variables used by Ansible in YAML or key=value format.
required: False
name: name:
description: description:
- The name to use for the workflow. - The name to use for the workflow.
@ -46,28 +40,23 @@ options:
organization: organization:
description: description:
- The organization the workflow is linked to. - The organization the workflow is linked to.
required: False
schema: schema:
description: description:
- > - >
The schema is a JSON- or YAML-formatted string defining the The schema is a JSON- or YAML-formatted string defining the
hierarchy structure that connects the nodes. Refer to Tower hierarchy structure that connects the nodes. Refer to Tower
documentation for more information. documentation for more information.
required: False
survey_enabled: survey_enabled:
description: description:
- Setting that variable will prompt the user for job type on the - Setting that variable will prompt the user for job type on the
workflow launch. workflow launch.
required: False
type: bool type: bool
survey: survey:
description: description:
- The definition of the survey associated to the workflow. - The definition of the survey associated to the workflow.
required: False
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

@ -1042,7 +1042,6 @@ lib/ansible/modules/remote_management/ucs/ucs_wwn_pool.py E322
lib/ansible/modules/remote_management/ucs/ucs_wwn_pool.py E323 lib/ansible/modules/remote_management/ucs/ucs_wwn_pool.py E323
lib/ansible/modules/source_control/github_issue.py E324 lib/ansible/modules/source_control/github_issue.py E324
lib/ansible/modules/source_control/github_issue.py E326 lib/ansible/modules/source_control/github_issue.py E326
lib/ansible/modules/source_control/gitlab_group.py E325
lib/ansible/modules/source_control/gitlab_project.py E324 lib/ansible/modules/source_control/gitlab_project.py E324
lib/ansible/modules/source_control/gitlab_project.py E326 lib/ansible/modules/source_control/gitlab_project.py E326
lib/ansible/modules/source_control/gitlab_user.py E326 lib/ansible/modules/source_control/gitlab_user.py E326

Loading…
Cancel
Save