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

Fix boolean defaults. (#1343) (#1358)

(cherry picked from commit a96f90ff94)

Co-authored-by: Felix Fontein <felix@fontein.de>
This commit is contained in:
patchback[bot] 2020-11-23 12:29:14 +01:00 committed by GitHub
parent 73d573b915
commit 247da9890b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
31 changed files with 34 additions and 14 deletions

View file

@ -53,6 +53,7 @@ options:
description: description:
- Use https instead of http to connect to InfluxDB server. - Use https instead of http to connect to InfluxDB server.
type: bool type: bool
default: false
timeout: timeout:
description: description:
- Number of seconds Requests will wait for client to establish a connection. - Number of seconds Requests will wait for client to establish a connection.
@ -68,6 +69,7 @@ options:
description: description:
- Use UDP to connect to InfluxDB server. - Use UDP to connect to InfluxDB server.
type: bool type: bool
default: false
udp_port: udp_port:
description: description:
- UDP port to connect to InfluxDB server. - UDP port to connect to InfluxDB server.

View file

@ -19,6 +19,7 @@ options:
Only the attributes of the current entity. User can configure to fetch other Only the attributes of the current entity. User can configure to fetch other
attributes of the nested entities by specifying C(nested_attributes). attributes of the nested entities by specifying C(nested_attributes).
type: bool type: bool
default: false
nested_attributes: nested_attributes:
description: description:
- Specifies list of the attributes which should be fetched from the API. - Specifies list of the attributes which should be fetched from the API.

View file

@ -48,7 +48,6 @@ options:
- Deprecated. Will be removed in community.general 2.0.0. Set I(recreate) to C(options-changed) instead - Deprecated. Will be removed in community.general 2.0.0. Set I(recreate) to C(options-changed) instead
for the same behavior of setting I(force) to C(yes). for the same behavior of setting I(force) to C(yes).
type: bool type: bool
default: no
recreate: recreate:
description: description:

View file

@ -86,6 +86,7 @@ options:
description: description:
- Whether versioning is enabled or disabled (note that once versioning is enabled, it can only be suspended) - Whether versioning is enabled or disabled (note that once versioning is enabled, it can only be suspended)
type: bool type: bool
default: false
requirements: requirements:
- "python >= 2.6" - "python >= 2.6"

View file

@ -148,7 +148,6 @@ options:
- if set to C(yes), instances will be preemptible and time-limited. - if set to C(yes), instances will be preemptible and time-limited.
(requires libcloud >= 0.20.0) (requires libcloud >= 0.20.0)
type: bool type: bool
default: 'no'
disk_size: disk_size:
type: int type: int
description: description:

View file

@ -21,7 +21,6 @@ options:
description: description:
- do not destroy the disk, merely detach it from an instance - do not destroy the disk, merely detach it from an instance
type: bool type: bool
default: 'no'
instance_name: instance_name:
type: str type: str
description: description:
@ -87,7 +86,6 @@ options:
description: description:
- If C(yes), deletes the volume when instance is terminated - If C(yes), deletes the volume when instance is terminated
type: bool type: bool
default: 'no'
image_family: image_family:
type: str type: str
description: description:

View file

@ -56,6 +56,7 @@ options:
type: str type: str
relative: relative:
type: bool type: bool
default: false
description: description:
- If set then the current domain is added onto the address field for C(CNAME), C(MX), C(NS) - If set then the current domain is added onto the address field for C(CNAME), C(MX), C(NS)
and C(SRV)record types. and C(SRV)record types.

View file

@ -48,6 +48,7 @@ options:
- "If I(true) all the attributes of the virtual machines should be - "If I(true) all the attributes of the virtual machines should be
included in the response." included in the response."
type: bool type: bool
default: false
case_sensitive: case_sensitive:
description: description:
- "If I(true) performed search will take case into account." - "If I(true) performed search will take case into account."

View file

@ -276,7 +276,7 @@ def main():
timeout=dict(type='int', default=30), timeout=dict(type='int', default=30),
type=dict(choices=['PUBLIC', 'SERVICENET'], default='PUBLIC'), type=dict(choices=['PUBLIC', 'SERVICENET'], default='PUBLIC'),
vip_id=dict(), vip_id=dict(),
wait=dict(type='bool'), wait=dict(type='bool', default=False),
wait_timeout=dict(type='int', default=300), wait_timeout=dict(type='int', default=300),
) )
) )

View file

@ -34,10 +34,12 @@ options:
Private containers, if previously made public, can have live objects Private containers, if previously made public, can have live objects
available until the TTL on cached objects expires available until the TTL on cached objects expires
type: bool type: bool
default: false
public: public:
description: description:
- Used to set a container as public, available via the Cloud Files CDN - Used to set a container as public, available via the Cloud Files CDN
type: bool type: bool
default: false
region: region:
type: str type: str
description: description:

View file

@ -61,6 +61,7 @@ options:
- If yes, create this alarm, but leave it in an inactive state. Defaults to - If yes, create this alarm, but leave it in an inactive state. Defaults to
no. no.
type: bool type: bool
default: false
metadata: metadata:
type: dict type: dict
description: description:

View file

@ -93,6 +93,7 @@ options:
description: description:
- If "yes", ensure the check is created, but don't actually use it yet. - If "yes", ensure the check is created, but don't actually use it yet.
type: bool type: bool
default: false
metadata: metadata:
type: dict type: dict
description: description:

View file

@ -55,7 +55,6 @@ options:
- If the key represents a prefix, each entry with the prefix can be - If the key represents a prefix, each entry with the prefix can be
retrieved by setting this to C(yes). retrieved by setting this to C(yes).
type: bool type: bool
default: 'no'
retrieve: retrieve:
description: description:
- If the I(state) is C(present) and I(value) is set, perform a - If the I(state) is C(present) and I(value) is set, perform a

View file

@ -42,6 +42,7 @@ options:
description: description:
- Sets the retention policy as default retention policy. - Sets the retention policy as default retention policy.
type: bool type: bool
default: false
extends_documentation_fragment: extends_documentation_fragment:
- community.general.influxdb - community.general.influxdb

View file

@ -289,7 +289,7 @@ def main():
name=dict(type='str', required=True), name=dict(type='str', required=True),
db=dict(type='str', aliases=['login_db']), db=dict(type='str', aliases=['login_db']),
value=dict(type='str'), value=dict(type='str'),
reset=dict(type='bool'), reset=dict(type='bool', default=False),
session_role=dict(type='str'), session_role=dict(type='str'),
trust_input=dict(type='bool', default=True), trust_input=dict(type='bool', default=True),
) )

View file

@ -76,11 +76,9 @@ options:
description: description:
- If set C("True") with state as C("absent"), then removes DNS records of the host managed by FreeIPA DNS. - If set C("True") with state as C("absent"), then removes DNS records of the host managed by FreeIPA DNS.
- This option has no effect for states other than "absent". - This option has no effect for states other than "absent".
default: false
type: bool type: bool
random_password: random_password:
description: Generate a random password to be used in bulk enrollment. description: Generate a random password to be used in bulk enrollment.
default: False
type: bool type: bool
extends_documentation_fragment: extends_documentation_fragment:
- community.general.ipa.documentation - community.general.ipa.documentation

View file

@ -35,6 +35,7 @@ options:
- Continue only after the status changes to 'MAINT'. - Continue only after the status changes to 'MAINT'.
- This overrides the shutdown_sessions option. - This overrides the shutdown_sessions option.
type: bool type: bool
default: false
host: host:
description: description:
- Name of the backend host to change. - Name of the backend host to change.

View file

@ -54,6 +54,7 @@ options:
- To allow the update process to downgrade packages to match what is present in the repository, set this to C(yes). - To allow the update process to downgrade packages to match what is present in the repository, set this to C(yes).
- This is useful for rolling back to stable from testing, or similar operations. - This is useful for rolling back to stable from testing, or similar operations.
type: bool type: bool
default: false
version_added: 1.2.0 version_added: 1.2.0
notes: notes:
- In order to check the availability of packages, the catalog cache under C(/var/opt/csw/pkgutil) may be refreshed even in check mode. - In order to check the availability of packages, the catalog cache under C(/var/opt/csw/pkgutil) may be refreshed even in check mode.

View file

@ -75,7 +75,6 @@ options:
- Upon successful registration, auto-consume available subscriptions - Upon successful registration, auto-consume available subscriptions
- Added in favor of deprecated autosubscribe in 2.5. - Added in favor of deprecated autosubscribe in 2.5.
type: bool type: bool
default: no
aliases: [autosubscribe] aliases: [autosubscribe]
activationkey: activationkey:
description: description:

View file

@ -64,6 +64,7 @@ options:
- Install/Remove category instead of a single package. - Install/Remove category instead of a single package.
required: false required: false
type: bool type: bool
default: false
''' '''
EXAMPLES = ''' EXAMPLES = '''

View file

@ -50,6 +50,7 @@ options:
description: description:
- Updates the OS to the latest version. - Updates the OS to the latest version.
type: bool type: bool
default: false
url: url:
description: description:
- Overrides both I(contenturl) and I(versionurl). - Overrides both I(contenturl) and I(versionurl).
@ -58,6 +59,7 @@ options:
description: description:
- Verify content for OS version. - Verify content for OS version.
type: bool type: bool
default: false
versionurl: versionurl:
description: description:
- URL for version string download. - URL for version string download.

View file

@ -35,7 +35,7 @@ options:
required: true required: true
force: force:
type: bool type: bool
default: "false" default: false
description: description:
- Applicable only while removing the nodes from the pool. gluster - Applicable only while removing the nodes from the pool. gluster
will refuse to detach a node from the pool if any one of the node will refuse to detach a node from the pool if any one of the node
@ -141,7 +141,7 @@ class Peer(object):
def main(): def main():
module = AnsibleModule( module = AnsibleModule(
argument_spec=dict( argument_spec=dict(
force=dict(type='bool', required=False), force=dict(type='bool', required=False, default=False),
nodes=dict(type='list', required=True), nodes=dict(type='list', required=True),
state=dict(type='str', choices=['absent', 'present'], state=dict(type='str', choices=['absent', 'present'],
default='present'), default='present'),

View file

@ -78,6 +78,7 @@ options:
- If brick is being created in the root partition, module will fail. - If brick is being created in the root partition, module will fail.
Set force to true to override this behaviour. Set force to true to override this behaviour.
type: bool type: bool
default: false
notes: notes:
- Requires cli tools for GlusterFS on servers. - Requires cli tools for GlusterFS on servers.
- Will add new bricks, but not remove them. - Will add new bricks, but not remove them.

View file

@ -31,11 +31,13 @@ options:
description: description:
- Remove licenses that have no controller affiliation in the cluster. - Remove licenses that have no controller affiliation in the cluster.
type: bool type: bool
default: false
remove_expired: remove_expired:
description: description:
- Remove licenses that have expired in the cluster. - Remove licenses that have expired in the cluster.
type: bool type: bool
default: false
serial_number: serial_number:
description: description:

View file

@ -68,6 +68,7 @@ options:
description: description:
- Create keystore if it does not exist. - Create keystore if it does not exist.
type: bool type: bool
default: false
keystore_type: keystore_type:
description: description:
- Keystore type (JCEKS, JKS). - Keystore type (JCEKS, JKS).

View file

@ -65,10 +65,12 @@ options:
to manual, hence combined with C(auto_node_startup=yes) will always return to manual, hence combined with C(auto_node_startup=yes) will always return
a changed state. a changed state.
type: bool type: bool
default: false
show_nodes: show_nodes:
description: description:
- Whether the list of nodes in the persistent iSCSI database should be returned by the module. - Whether the list of nodes in the persistent iSCSI database should be returned by the module.
type: bool type: bool
default: false
''' '''
EXAMPLES = r''' EXAMPLES = r'''

View file

@ -80,14 +80,17 @@ options:
description: description:
- Whether to print a transaction summary. - Whether to print a transaction summary.
type: bool type: bool
default: false
verbose: verbose:
description: description:
- Print extra information. - Print extra information.
type: bool type: bool
default: false
debug: debug:
description: description:
- Enable full debugging. - Enable full debugging.
type: bool type: bool
default: false
requirements: requirements:
- puppet - puppet
author: author:

View file

@ -36,7 +36,6 @@ options:
- Should a 'down' file exist or not, if it exists it disables auto startup. - Should a 'down' file exist or not, if it exists it disables auto startup.
Defaults to no. Downed does not imply stopped. Defaults to no. Downed does not imply stopped.
type: bool type: bool
default: no
enabled: enabled:
description: description:
- Whether the service is enabled or not, if disabled it also implies stopped. - Whether the service is enabled or not, if disabled it also implies stopped.

View file

@ -84,6 +84,7 @@ options:
description: description:
- Log new connections matched to this rule - Log new connections matched to this rule
type: bool type: bool
default: false
from_ip: from_ip:
description: description:
- Source IP address. - Source IP address.
@ -120,6 +121,7 @@ options:
description: description:
- Delete rule. - Delete rule.
type: bool type: bool
default: false
interface: interface:
description: description:
- Specify interface for the rule. The direction (in or out) used - Specify interface for the rule. The direction (in or out) used
@ -149,6 +151,7 @@ options:
description: description:
- Apply the rule to routed/forwarded packets. - Apply the rule to routed/forwarded packets.
type: bool type: bool
default: false
comment: comment:
description: description:
- Add a comment to the rule. Requires UFW version >=0.35. - Add a comment to the rule. Requires UFW version >=0.35.

View file

@ -148,6 +148,7 @@ options:
a new volume, and cannot be changed for an existing a new volume, and cannot be changed for an existing
volume. volume.
type: bool type: bool
default: false
growphysical: growphysical:
description: description:
- Specifies whether to attempt to execute a growphysical - Specifies whether to attempt to execute a growphysical

View file

@ -270,7 +270,7 @@ def main():
apps=dict(default=None, required=False), apps=dict(default=None, required=False),
cache_table=dict(default=None, required=False, type='str'), cache_table=dict(default=None, required=False, type='str'),
clear=dict(default=None, required=False, type='bool'), clear=dict(default=False, required=False, type='bool'),
database=dict(default=None, required=False, type='str'), database=dict(default=None, required=False, type='str'),
failfast=dict(default=False, required=False, type='bool', aliases=['fail_fast']), failfast=dict(default=False, required=False, type='bool', aliases=['fail_fast']),
fixtures=dict(default=None, required=False, type='str'), fixtures=dict(default=None, required=False, type='str'),