Skip to content

Commit 015566f

Browse files
authored
Normalize more booleans. (#5247)
1 parent 570445a commit 015566f

File tree

170 files changed

+465
-465
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

170 files changed

+465
-465
lines changed

plugins/become/doas.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@
5555
- name: ANSIBLE_DOAS_FLAGS
5656
become_pass:
5757
description: password for doas prompt
58-
required: False
58+
required: false
5959
vars:
6060
- name: ansible_become_password
6161
- name: ansible_become_pass

plugins/become/dzdo.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@
5555
- name: ANSIBLE_DZDO_FLAGS
5656
become_pass:
5757
description: Options to pass to dzdo
58-
required: False
58+
required: false
5959
vars:
6060
- name: ansible_become_password
6161
- name: ansible_become_pass

plugins/become/ksu.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
env:
2626
- name: ANSIBLE_BECOME_USER
2727
- name: ANSIBLE_KSU_USER
28-
required: True
28+
required: true
2929
become_exe:
3030
description: Su executable
3131
default: ksu
@@ -56,7 +56,7 @@
5656
- name: ANSIBLE_KSU_FLAGS
5757
become_pass:
5858
description: ksu password
59-
required: False
59+
required: false
6060
vars:
6161
- name: ansible_ksu_pass
6262
- name: ansible_become_pass

plugins/become/machinectl.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@
5656
- name: ANSIBLE_MACHINECTL_FLAGS
5757
become_pass:
5858
description: Password for machinectl
59-
required: False
59+
required: false
6060
vars:
6161
- name: ansible_become_password
6262
- name: ansible_become_pass

plugins/become/pbrun.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@
5656
- name: ANSIBLE_PBRUN_FLAGS
5757
become_pass:
5858
description: Password for pbrun
59-
required: False
59+
required: false
6060
vars:
6161
- name: ansible_become_password
6262
- name: ansible_become_pass
@@ -69,7 +69,7 @@
6969
key: password
7070
wrap_exe:
7171
description: Toggle to wrap the command pbrun calls in 'shell -c' or not
72-
default: False
72+
default: false
7373
type: bool
7474
ini:
7575
- section: pbrun_become_plugin

plugins/become/pfexec.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@
5959
- name: ANSIBLE_PFEXEC_FLAGS
6060
become_pass:
6161
description: pfexec password
62-
required: False
62+
required: false
6363
vars:
6464
- name: ansible_become_password
6565
- name: ansible_become_pass
@@ -72,7 +72,7 @@
7272
key: password
7373
wrap_exe:
7474
description: Toggle to wrap the command pfexec calls in 'shell -c' or not
75-
default: False
75+
default: false
7676
type: bool
7777
ini:
7878
- section: pfexec_become_plugin

plugins/become/pmrun.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@
4242
- name: ANSIBLE_PMRUN_FLAGS
4343
become_pass:
4444
description: pmrun password
45-
required: False
45+
required: false
4646
vars:
4747
- name: ansible_become_password
4848
- name: ansible_become_pass

plugins/become/sesu.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@
5656
- name: ANSIBLE_SESU_FLAGS
5757
become_pass:
5858
description: Password to pass to sesu
59-
required: False
59+
required: false
6060
vars:
6161
- name: ansible_become_password
6262
- name: ansible_become_pass

plugins/cache/pickle.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
author: Brian Coca (@bcoca)
1717
options:
1818
_uri:
19-
required: True
19+
required: true
2020
description:
2121
- Path in which the cache plugin will save the files
2222
env:

plugins/cache/redis.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
- The format is C(host:port:db:password), for example C(localhost:6379:0:changeme).
2222
- To use encryption in transit, prefix the connection with C(tls://), as in C(tls://localhost:6379:0:changeme).
2323
- To use redis sentinel, use separator C(;), for example C(localhost:26379;localhost:26379;0:changeme). Requires redis>=2.9.0.
24-
required: True
24+
required: true
2525
env:
2626
- name: ANSIBLE_CACHE_PLUGIN_CONNECTION
2727
ini:

plugins/cache/yaml.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
author: Brian Coca (@bcoca)
1717
options:
1818
_uri:
19-
required: True
19+
required: true
2020
description:
2121
- Path in which the cache plugin will save the files
2222
env:

plugins/callback/cgroup_memory_recap.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -23,15 +23,15 @@
2323
- To create the cgroup, first use a command such as C(sudo cgcreate -a ec2-user:ec2-user -t ec2-user:ec2-user -g memory:ansible_profile)
2424
options:
2525
max_mem_file:
26-
required: True
26+
required: true
2727
description: Path to cgroups C(memory.max_usage_in_bytes) file. Example C(/sys/fs/cgroup/memory/ansible_profile/memory.max_usage_in_bytes)
2828
env:
2929
- name: CGROUP_MAX_MEM_FILE
3030
ini:
3131
- section: callback_cgroupmemrecap
3232
key: max_mem_file
3333
cur_mem_file:
34-
required: True
34+
required: true
3535
description: Path to C(memory.usage_in_bytes) file. Example C(/sys/fs/cgroup/memory/ansible_profile/memory.usage_in_bytes)
3636
env:
3737
- name: CGROUP_CUR_MEM_FILE

plugins/callback/diy.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -713,7 +713,7 @@
713713
- name: Using alias vars (see ansible.cfg)
714714
ansible.builtin.debug:
715715
msg:
716-
when: False
716+
when: false
717717
vars:
718718
ansible_callback_diy_playbook_on_task_start_msg: ""
719719
on_skipped_msg: "DIY output(via task vars): skipped example:\n\e[0m\e[38;5;4m\u25b6\u25b6 {{ ansible_callback_diy.result.task.name }}\n"

plugins/callback/hipchat.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -21,15 +21,15 @@
2121
options:
2222
token:
2323
description: HipChat API token for v1 or v2 API.
24-
required: True
24+
required: true
2525
env:
2626
- name: HIPCHAT_TOKEN
2727
ini:
2828
- section: callback_hipchat
2929
key: token
3030
api_version:
3131
description: HipChat API version, v1 or v2.
32-
required: False
32+
required: false
3333
default: v1
3434
env:
3535
- name: HIPCHAT_API_VERSION
@@ -55,7 +55,7 @@
5555
notify:
5656
description: Add notify flag to important messages
5757
type: bool
58-
default: True
58+
default: true
5959
env:
6060
- name: HIPCHAT_NOTIFY
6161
ini:

plugins/callback/jabber.py

+4-4
Original file line numberDiff line numberDiff line change
@@ -20,22 +20,22 @@
2020
options:
2121
server:
2222
description: connection info to jabber server
23-
required: True
23+
required: true
2424
env:
2525
- name: JABBER_SERV
2626
user:
2727
description: Jabber user to authenticate as
28-
required: True
28+
required: true
2929
env:
3030
- name: JABBER_USER
3131
password:
3232
description: Password for the user to the jabber server
33-
required: True
33+
required: true
3434
env:
3535
- name: JABBER_PASS
3636
to:
3737
description: chat identifier that will receive the message
38-
required: True
38+
required: true
3939
env:
4040
- name: JABBER_TO
4141
'''

plugins/callback/logdna.py

+5-5
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
- whitelisting in configuration
1919
options:
2020
conf_key:
21-
required: True
21+
required: true
2222
description: LogDNA Ingestion Key
2323
type: string
2424
env:
@@ -27,17 +27,17 @@
2727
- section: callback_logdna
2828
key: conf_key
2929
plugin_ignore_errors:
30-
required: False
30+
required: false
3131
description: Whether to ignore errors on failing or not
3232
type: boolean
3333
env:
3434
- name: ANSIBLE_IGNORE_ERRORS
3535
ini:
3636
- section: callback_logdna
3737
key: plugin_ignore_errors
38-
default: False
38+
default: false
3939
conf_hostname:
40-
required: False
40+
required: false
4141
description: Alternative Host Name; the current host name by default
4242
type: string
4343
env:
@@ -46,7 +46,7 @@
4646
- section: callback_logdna
4747
key: conf_hostname
4848
conf_tags:
49-
required: False
49+
required: false
5050
description: Tags
5151
type: string
5252
env:

plugins/callback/logentries.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@
4848
description: The logentries "TCP token"
4949
env:
5050
- name: LOGENTRIES_ANSIBLE_TOKEN
51-
required: True
51+
required: true
5252
ini:
5353
- section: callback_logentries
5454
key: token
@@ -57,15 +57,15 @@
5757
- Toggle to decide whether to use TLS to encrypt the communications with the API server
5858
env:
5959
- name: LOGENTRIES_USE_TLS
60-
default: False
60+
default: false
6161
type: boolean
6262
ini:
6363
- section: callback_logentries
6464
key: use_tls
6565
flatten:
6666
description: flatten complex data structures into a single dictionary with complex keys
6767
type: boolean
68-
default: False
68+
default: false
6969
env:
7070
- name: LOGENTRIES_FLATTEN
7171
ini:

plugins/callback/selective.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
- If you increase verbosity all tasks are printed.
2222
options:
2323
nocolor:
24-
default: False
24+
default: false
2525
description: This setting allows suppressing colorizing output
2626
env:
2727
- name: ANSIBLE_NOCOLOR

plugins/callback/slack.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
- Before 2.4 only environment variables were available for configuring this plugin
2222
options:
2323
webhook_url:
24-
required: True
24+
required: true
2525
description: Slack Webhook URL
2626
env:
2727
- name: SLACK_WEBHOOK_URL
@@ -51,7 +51,7 @@
5151
ini:
5252
- section: callback_slack
5353
key: validate_certs
54-
default: True
54+
default: true
5555
type: bool
5656
'''
5757

plugins/doc_fragments/ibm_storage.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -18,17 +18,17 @@ class ModuleDocFragment(object):
1818
description:
1919
- Management user on the spectrum accelerate storage system.
2020
type: str
21-
required: True
21+
required: true
2222
password:
2323
description:
2424
- Password for username on the spectrum accelerate storage system.
2525
type: str
26-
required: True
26+
required: true
2727
endpoints:
2828
description:
2929
- The hostname or management IP of Spectrum Accelerate storage system.
3030
type: str
31-
required: True
31+
required: true
3232
notes:
3333
- This module requires pyxcli python library.
3434
Use 'pip install pyxcli' in order to get pyxcli.

plugins/doc_fragments/oracle_creatable_resource.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ class ModuleDocFragment(object):
1515
idempotent operation, and doesn't create the resource if it already exists. Setting this option
1616
to true, forcefully creates a copy of the resource, even if it already exists.This option is
1717
mutually exclusive with I(key_by).
18-
default: False
18+
default: false
1919
type: bool
2020
key_by:
2121
description: The list of comma-separated attributes of this resource which should be used to uniquely

plugins/inventory/gitlab_runners.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@
6666
# Example using constructed features to create groups and set ansible_host
6767
plugin: community.general.gitlab_runners
6868
host: https://gitlab.com
69-
strict: False
69+
strict: false
7070
keyed_groups:
7171
# add e.g. amd64 hosts to an arch_amd64 group
7272
- prefix: arch

plugins/inventory/nmap.py

+7-7
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
options:
2121
plugin:
2222
description: token that ensures this is a source file for the 'nmap' plugin.
23-
required: True
23+
required: true
2424
choices: ['nmap', 'community.general.nmap']
2525
sudo:
2626
description: Set to C(true) to execute a C(sudo nmap) plugin scan.
@@ -29,38 +29,38 @@
2929
type: boolean
3030
address:
3131
description: Network IP or range of IPs to scan, you can use a simple range (10.2.2.15-25) or CIDR notation.
32-
required: True
32+
required: true
3333
exclude:
3434
description: list of addresses to exclude
3535
type: list
3636
elements: string
3737
ports:
3838
description: Enable/disable scanning for open ports
3939
type: boolean
40-
default: True
40+
default: true
4141
ipv4:
4242
description: use IPv4 type addresses
4343
type: boolean
44-
default: True
44+
default: true
4545
ipv6:
4646
description: use IPv6 type addresses
4747
type: boolean
48-
default: True
48+
default: true
4949
notes:
5050
- At least one of ipv4 or ipv6 is required to be True, both can be True, but they cannot both be False.
5151
- 'TODO: add OS fingerprinting'
5252
'''
5353
EXAMPLES = '''
5454
# inventory.config file in YAML format
5555
plugin: community.general.nmap
56-
strict: False
56+
strict: false
5757
address: 192.168.0.0/24
5858
5959
6060
# a sudo nmap scan to fully use nmap scan power.
6161
plugin: community.general.nmap
6262
sudo: true
63-
strict: False
63+
strict: false
6464
address: 192.168.0.0/24
6565
'''
6666

0 commit comments

Comments
 (0)