Adjust booleans in net tools, web infrastructure, and clustering modules. (#5159)

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

View file

@ -50,12 +50,12 @@ options:
description:
- Use https to access balancer management page.
type: bool
default: 'no'
default: false
validate_certs:
description:
- Validate ssl/tls certificates.
type: bool
default: 'yes'
default: true
'''
EXAMPLES = '''

View file

@ -94,7 +94,7 @@ options:
description:
- Whether to run the clean procedure in case of C(state=finalize).
type: bool
default: 'yes'
default: true
keep_releases:
type: int

View file

@ -65,7 +65,7 @@ options:
- Clear the existing files before trying to copy or link the original file.
- Used only with the C(collectstatic) command. The C(--noinput) argument will be added automatically.
required: false
default: no
default: false
type: bool
database:
description:

View file

@ -54,10 +54,10 @@ options:
create:
required: false
type: bool
default: "yes"
default: true
description:
- Used with C(state=present). If specified, the file will be created
if it does not already exist. If set to "no", will fail if the
if it does not already exist. If set to C(false), will fail if the
file does not exist
notes:
- "This module depends on the I(passlib) Python library, which needs to be installed on all target systems."

View file

@ -68,10 +68,10 @@ options:
required: false
validate_certs:
type: bool
default: yes
default: true
description:
- If set to C(no), the SSL certificates will not be validated.
This should only set to C(no) used on personally controlled sites
- If set to C(false), the SSL certificates will not be validated.
This should only set to C(false) used on personally controlled sites
using self-signed certificates as it avoids verifying the source site.
- The C(python-jenkins) library only handles this by using the environment variable C(PYTHONHTTPSVERIFY).
version_added: 2.3.0

View file

@ -37,7 +37,7 @@ options:
type: str
description:
- Plugin name.
required: yes
required: true
owner:
type: str
description:
@ -114,7 +114,7 @@ options:
- Defines whether to install plugin dependencies.
- This option takes effect only if the I(version) is not defined.
type: bool
default: yes
default: true
notes:
- Plugin installation should be run under root or the same user which owns
@ -141,7 +141,7 @@ EXAMPLES = '''
- name: Install plugin without its dependencies
community.general.jenkins_plugin:
name: build-pipeline-plugin
with_dependencies: no
with_dependencies: false
- name: Make sure the plugin is always up-to-date
community.general.jenkins_plugin:
@ -196,11 +196,11 @@ EXAMPLES = '''
vars:
my_jenkins_plugins:
token-macro:
enabled: yes
enabled: true
build-pipeline-plugin:
version: "1.4.9"
pinned: no
enabled: yes
pinned: false
enabled: true
tasks:
- name: Install plugins without a specific version
community.general.jenkins_plugin:
@ -221,17 +221,17 @@ EXAMPLES = '''
- name: Initiate the fact
ansible.builtin.set_fact:
jenkins_restart_required: no
jenkins_restart_required: false
- name: Check if restart is required by any of the versioned plugins
ansible.builtin.set_fact:
jenkins_restart_required: yes
jenkins_restart_required: true
when: item.changed
with_items: "{{ my_jenkins_plugin_versioned.results }}"
- name: Check if restart is required by any of the unversioned plugins
ansible.builtin.set_fact:
jenkins_restart_required: yes
jenkins_restart_required: true
when: item.changed
with_items: "{{ my_jenkins_plugin_unversioned.results }}"
@ -257,7 +257,7 @@ EXAMPLES = '''
- name: Reset the fact
ansible.builtin.set_fact:
jenkins_restart_required: no
jenkins_restart_required: false
when: jenkins_restart_required
- name: Plugin pinning

View file

@ -33,11 +33,11 @@ options:
default: http://localhost:8080
validate_certs:
description:
- If set to C(no), the SSL certificates will not be validated.
This should only set to C(no) used on personally controlled sites
- If set to C(false), the SSL certificates will not be validated.
This should only set to C(false) used on personally controlled sites
using self-signed certificates as it avoids verifying the source site.
type: bool
default: 'yes'
default: true
user:
type: str
description:
@ -90,7 +90,7 @@ EXAMPLES = '''
user: admin
password: admin
url: https://localhost
validate_certs: no
validate_certs: false
'''
RETURN = '''