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:
- Use https instead of http to connect to InfluxDB server.
type: bool
default: false
timeout:
description:
- Number of seconds Requests will wait for client to establish a connection.
@ -68,6 +69,7 @@ options:
description:
- Use UDP to connect to InfluxDB server.
type: bool
default: false
udp_port:
description:
- 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
attributes of the nested entities by specifying C(nested_attributes).
type: bool
default: false
nested_attributes:
description:
- 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
for the same behavior of setting I(force) to C(yes).
type: bool
default: no
recreate:
description:

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

@ -76,11 +76,9 @@ options:
description:
- 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".
default: false
type: bool
random_password:
description: Generate a random password to be used in bulk enrollment.
default: False
type: bool
extends_documentation_fragment:
- community.general.ipa.documentation

View file

@ -35,6 +35,7 @@ options:
- Continue only after the status changes to 'MAINT'.
- This overrides the shutdown_sessions option.
type: bool
default: false
host:
description:
- 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).
- This is useful for rolling back to stable from testing, or similar operations.
type: bool
default: false
version_added: 1.2.0
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.

View file

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

View file

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

View file

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

View file

@ -35,7 +35,7 @@ options:
required: true
force:
type: bool
default: "false"
default: false
description:
- 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
@ -141,7 +141,7 @@ class Peer(object):
def main():
module = AnsibleModule(
argument_spec=dict(
force=dict(type='bool', required=False),
force=dict(type='bool', required=False, default=False),
nodes=dict(type='list', required=True),
state=dict(type='str', choices=['absent', 'present'],
default='present'),

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

@ -84,6 +84,7 @@ options:
description:
- Log new connections matched to this rule
type: bool
default: false
from_ip:
description:
- Source IP address.
@ -120,6 +121,7 @@ options:
description:
- Delete rule.
type: bool
default: false
interface:
description:
- Specify interface for the rule. The direction (in or out) used
@ -149,6 +151,7 @@ options:
description:
- Apply the rule to routed/forwarded packets.
type: bool
default: false
comment:
description:
- 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
volume.
type: bool
default: false
growphysical:
description:
- Specifies whether to attempt to execute a growphysical

View file

@ -270,7 +270,7 @@ def main():
apps=dict(default=None, required=False),
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'),
failfast=dict(default=False, required=False, type='bool', aliases=['fail_fast']),
fixtures=dict(default=None, required=False, type='str'),