Skip to content

Commit fb391a0

Browse files
authored
Replace "yes"/"no" boolean values with "true"/"false" (#414)
1 parent d52f867 commit fb391a0

30 files changed

+84
-84
lines changed

.github/workflows/galaxy.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
name: Ansible Galaxy import
3-
on:
3+
"on":
44
release:
55
types:
66
- published

.github/workflows/molecule.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
name: Molecule CI/CD
3-
on:
3+
"on":
44
pull_request:
55
branches:
66
- main

.github/workflows/release-drafter.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
name: Release Drafter
3-
on:
3+
"on":
44
pull_request:
55
types:
66
- opened

.yamllint

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,3 @@ rules:
1010
level: error
1111
comments-indentation: disable
1212
line-length: disable
13-
truthy: disable

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ ENHANCEMENTS:
1111

1212
* Replace Ansible base with Ansible core. Ansible core will be the "core" Ansible release moving forward from Ansible `2.11`.
1313
* Update GitHub actions to add a workflow dispatch option.
14+
* Replace "yes"/"no" boolean values with "true"/"false" to comply with YAML spec `1.2`.
1415

1516
BUG FIXES:
1617

handlers/main.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
---
22
- name: (Handler) Systemd daemon-reload
33
systemd:
4-
daemon_reload: yes
4+
daemon_reload: true
55

66
- name: (Handler) Start/reload NGINX
77
service:
88
name: nginx
99
state: reloaded
10-
enabled: yes
10+
enabled: true
1111
when:
1212
- nginx_start | bool
1313
- not ansible_check_mode | bool
@@ -18,8 +18,8 @@
1818
args:
1919
chdir: /etc/nginx/
2020
register: config_check
21-
ignore_errors: yes
22-
check_mode: no
21+
ignore_errors: true
22+
check_mode: false
2323
changed_when: false
2424
listen: (Handler) Run NGINX
2525

molecule/default/verify.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,16 +6,16 @@
66
package:
77
name: nginx
88
state: present
9-
check_mode: yes
9+
check_mode: true
1010
register: install
1111
failed_when: (install is changed) or (install is failed)
1212

1313
- name: Check if NGINX service is running
1414
service:
1515
name: nginx
1616
state: started
17-
enabled: yes
18-
check_mode: yes
17+
enabled: true
18+
check_mode: true
1919
register: service
2020
failed_when: (service is changed) or (service is failed)
2121

molecule/module/verify.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,16 +6,16 @@
66
package:
77
name: nginx
88
state: present
9-
check_mode: yes
9+
check_mode: true
1010
register: install
1111
failed_when: (install is changed) or (install is failed)
1212

1313
- name: Check if NGINX service is running
1414
service:
1515
name: nginx
1616
state: started
17-
enabled: yes
18-
check_mode: yes
17+
enabled: true
18+
check_mode: true
1919
register: service
2020
failed_when: (service is changed) or (service is failed)
2121

molecule/plus/prepare.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,12 @@
77
copy:
88
content: "{{ lookup('env','NGINX_CRT') | b64decode }}"
99
dest: ../../files/license/nginx-repo.crt
10-
force: no
10+
force: false
1111
mode: 0444
1212

1313
- name: Create ephemeral license key file from b64 decoded env var
1414
copy:
1515
content: "{{ lookup('env','NGINX_KEY') | b64decode }}"
1616
dest: ../../files/license/nginx-repo.key
17-
force: no
17+
force: false
1818
mode: 0444

molecule/plus/verify.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,16 +6,16 @@
66
package:
77
name: nginx-plus
88
state: present
9-
check_mode: yes
9+
check_mode: true
1010
register: install
1111
failed_when: (install is changed) or (install is failed)
1212

1313
- name: Check if NGINX Plus service is running
1414
service:
1515
name: nginx
1616
state: started
17-
enabled: yes
18-
check_mode: yes
17+
enabled: true
18+
check_mode: true
1919
register: service
2020
failed_when: (service is changed) or (service is failed)
2121

0 commit comments

Comments
 (0)