Normalize more booleans. (#5247)

This commit is contained in:
Felix Fontein 2022-09-06 20:42:17 +02:00 committed by GitHub
parent 570445adc4
commit 015566fb06
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
170 changed files with 465 additions and 465 deletions

View file

@ -94,14 +94,14 @@ EXAMPLES = '''
community.general.gitlab_group:
api_url: https://gitlab.example.com/
api_token: "{{ access_token }}"
validate_certs: False
validate_certs: false
name: my_first_group
state: absent
- name: "Create GitLab Group"
community.general.gitlab_group:
api_url: https://gitlab.example.com/
validate_certs: True
validate_certs: true
api_username: dj-wasabi
api_password: "MySecretPassword"
name: my_first_group
@ -112,7 +112,7 @@ EXAMPLES = '''
- name: "Create GitLab SubGroup"
community.general.gitlab_group:
api_url: https://gitlab.example.com/
validate_certs: True
validate_certs: true
api_username: dj-wasabi
api_password: "MySecretPassword"
name: my_first_group
@ -124,7 +124,7 @@ EXAMPLES = '''
- name: "Create GitLab Group for SubGroups only"
community.general.gitlab_group:
api_url: https://gitlab.example.com/
validate_certs: True
validate_certs: true
api_username: dj-wasabi
api_password: "MySecretPassword"
name: my_main_group

View file

@ -186,7 +186,7 @@ EXAMPLES = r'''
community.general.gitlab_project:
api_url: https://gitlab.example.com/
api_token: "{{ access_token }}"
validate_certs: False
validate_certs: false
name: my_first_project
state: absent
delegate_to: localhost
@ -194,15 +194,15 @@ EXAMPLES = r'''
- name: Create GitLab Project in group Ansible
community.general.gitlab_project:
api_url: https://gitlab.example.com/
validate_certs: True
validate_certs: true
api_username: dj-wasabi
api_password: "MySecretPassword"
name: my_first_project
group: ansible
issues_enabled: False
issues_enabled: false
merge_method: rebase_merge
wiki_enabled: True
snippets_enabled: True
wiki_enabled: true
snippets_enabled: true
import_url: http://git.example.com/example/lab.git
initialize_with_readme: true
state: present

View file

@ -91,7 +91,7 @@ EXAMPLES = r'''
community.general.gitlab_project_members:
api_url: 'https://gitlab.example.com'
api_token: 'Your-Private-Token'
validate_certs: True
validate_certs: true
project: projectname
gitlab_user: username
access_level: developer
@ -101,7 +101,7 @@ EXAMPLES = r'''
community.general.gitlab_project_members:
api_url: 'https://gitlab.example.com'
api_token: 'Your-Private-Token'
validate_certs: False
validate_certs: false
project: projectname
gitlab_user: username
state: absent

View file

@ -46,14 +46,14 @@ options:
description:
description:
- The unique name of the runner.
required: True
required: true
type: str
aliases:
- name
state:
description:
- Make sure that the runner with the same name exists with the same configuration or delete the runner with the same name.
required: False
required: false
default: present
choices: ["present", "absent"]
type: str
@ -72,39 +72,39 @@ options:
active:
description:
- Define if the runners is immediately active after creation.
required: False
required: false
default: true
type: bool
locked:
description:
- Determines if the runner is locked or not.
required: False
default: False
required: false
default: false
type: bool
access_level:
description:
- Determines if a runner can pick up jobs only from protected branches.
- If set to C(ref_protected), runner can pick up jobs only from protected branches.
- If set to C(not_protected), runner can pick up jobs from both protected and unprotected branches.
required: False
required: false
default: ref_protected
choices: ["ref_protected", "not_protected"]
type: str
maximum_timeout:
description:
- The maximum time that a runner has to complete a specific job.
required: False
required: false
default: 3600
type: int
run_untagged:
description:
- Run untagged jobs or not.
required: False
required: false
default: true
type: bool
tag_list:
description: The tags that apply to the runner.
required: False
required: false
default: []
type: list
elements: str
@ -118,10 +118,10 @@ EXAMPLES = '''
registration_token: 4gfdsg345
description: Docker Machine t1
state: present
active: True
active: true
tag_list: ['docker']
run_untagged: False
locked: False
run_untagged: false
locked: false
- name: "Delete runner"
community.general.gitlab_runner:

View file

@ -144,14 +144,14 @@ EXAMPLES = '''
community.general.gitlab_user:
api_url: https://gitlab.example.com/
api_token: "{{ access_token }}"
validate_certs: False
validate_certs: false
username: myusername
state: absent
- name: "Create GitLab User"
community.general.gitlab_user:
api_url: https://gitlab.example.com/
validate_certs: True
validate_certs: true
api_username: dj-wasabi
api_password: "MySecretPassword"
name: My Name
@ -167,7 +167,7 @@ EXAMPLES = '''
- name: "Create GitLab User using external identity provider"
community.general.gitlab_user:
api_url: https://gitlab.example.com/
validate_certs: True
validate_certs: true
api_token: "{{ access_token }}"
name: My Name
username: myusername
@ -184,7 +184,7 @@ EXAMPLES = '''
community.general.gitlab_user:
api_url: https://gitlab.example.com/
api_token: "{{ access_token }}"
validate_certs: False
validate_certs: false
username: myusername
state: blocked
@ -192,7 +192,7 @@ EXAMPLES = '''
community.general.gitlab_user:
api_url: https://gitlab.example.com/
api_token: "{{ access_token }}"
validate_certs: False
validate_certs: false
username: myusername
state: unblocked
'''