Adjust booleans in misc modules. (#5160)

This commit is contained in:
Felix Fontein 2022-08-24 20:00:26 +02:00 committed by GitHub
commit 403c4f7477
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
27 changed files with 110 additions and 110 deletions

View file

@ -56,8 +56,8 @@ EXAMPLES = r'''
username: "{{influxdb_username}}"
password: "{{influxdb_password}}"
database_name: "{{influxdb_database_name}}"
ssl: yes
validate_certs: yes
ssl: true
validate_certs: true
'''
RETURN = r'''

View file

@ -77,8 +77,8 @@ EXAMPLES = r'''
policy_name: test
duration: 1h
replication: 1
ssl: yes
validate_certs: yes
ssl: true
validate_certs: true
state: present
- name: Create 1 day retention policy with 1 hour shard group duration
@ -108,8 +108,8 @@ EXAMPLES = r'''
policy_name: test
duration: INF
replication: 1
ssl: no
validate_certs: no
ssl: false
validate_certs: false
shard_group_duration: 1w
state: present
@ -120,8 +120,8 @@ EXAMPLES = r'''
policy_name: test
duration: 5d1h30m
replication: 1
ssl: no
validate_certs: no
ssl: false
validate_certs: false
shard_group_duration: 1d10h30m
state: present

View file

@ -35,7 +35,7 @@ options:
description:
- Whether the user should be in the admin role or not.
- Since version 2.8, the role will also be updated.
default: no
default: false
type: bool
state:
description:
@ -73,7 +73,7 @@ EXAMPLES = r'''
community.general.influxdb_user:
user_name: john
user_password: s3cr3t
admin: yes
admin: true
hostname: "{{ influxdb_hostname }}"
login_username: "{{ influxdb_username }}"
login_password: "{{ influxdb_password }}"

View file

@ -109,7 +109,7 @@ EXAMPLES = '''
community.general.elasticsearch_plugin:
name: ingest-geoip
state: present
force: yes
force: true
'''
import os

View file

@ -20,12 +20,12 @@ options:
dsn:
description:
- The connection string passed into ODBC.
required: yes
required: true
type: str
query:
description:
- The SQL query to perform.
required: yes
required: true
type: str
params:
description:
@ -38,7 +38,7 @@ options:
- Some databases allow a commit after a select whereas others raise an exception.
- Default is C(true) to support legacy module behavior.
type: bool
default: yes
default: true
version_added: 1.3.0
requirements:
- "python >= 2.6"
@ -58,7 +58,7 @@ EXAMPLES = '''
params:
- "value1"
commit: false
changed_when: no
changed_when: false
'''
RETURN = '''

View file

@ -57,10 +57,10 @@ options:
type: str
validate_certs:
description:
- If C(no), SSL certificates will not be validated. This should only be used
- If C(false), SSL certificates will not be validated. This should only be used
on personally controlled sites using self-signed certificates.
type: bool
default: 'yes'
default: true
'''
EXAMPLES = '''
@ -71,7 +71,7 @@ EXAMPLES = '''
- name: Wait for handoffs to finish. Use with async and poll.
community.general.riak:
wait_for_handoffs: yes
wait_for_handoffs: true
- name: Wait for riak_kv service to startup
community.general.riak:

View file

@ -57,7 +57,7 @@ options:
- Automatically commit the change only if the import succeed. Sometimes it is necessary to use autocommit=true, since some content can't be changed
within a transaction.
type: bool
default: 'no'
default: false
notes:
- Requires the pymssql Python package on the remote host. For Ubuntu, this
is as easy as pip install pymssql (See M(ansible.builtin.pip).)