Use true instead of yes.

This commit is contained in:
me
2026-10-02 07:59:57 -07:00
parent ff548cc7a2
commit a822b095ee
44 changed files with 196 additions and 198 deletions
+13 -14
View File
@@ -8,7 +8,7 @@
name: "{{ crond }}"
pattern: "{{ crond_pattern }}"
state: started
enabled: yes
enabled: true
when: ansible_virtualization_type != 'docker'
and ansible_service_mgr != "runit"
register: cron_status
@@ -20,7 +20,7 @@
service:
name: "{{ crond }}"
state: started
enabled: yes
enabled: true
when: ansible_virtualization_type != 'docker'
and ansible_service_mgr == "runit"
ignore_errors: true # Service module seems experimental for this init system.
@@ -33,8 +33,8 @@
regexp: '{{ item.key }}'
line: '{{ item.value }} # MANAGED BY ANSIBLE'
state: present
create: yes
backup: yes
create: true
backup: true
loop:
- { "key": '^[\#]?AllowUsers', "value": 'AllowUsers {{ user }}'}
- { "key": '^[\#]?PermitRootLogin', "value": 'PermitRootLogin no'}
@@ -57,8 +57,8 @@
regexp: '{{ item.key }}'
line: '{{ item.value }} # MANAGED BY ANSIBLE'
state: present
create: yes
backup: yes
create: true
backup: true
loop:
- { "key": '^[\#]?AllowUsers', "value": 'AllowUsers root {{ user }}'}
- { "key": '^[\#]?PermitRootLogin', "value": 'PermitRootLogin yes'}
@@ -70,7 +70,7 @@
name: "{{ sshd }}"
pattern: "{{ sshd_pattern }}"
state: reloaded
enabled: yes
enabled: true
when: ansible_virtualization_type != 'docker'
and ansible_service_mgr != "runit"
register: sshd_status
@@ -84,7 +84,7 @@
shell: journalctl --vacuum-size=100M
when: ansible_system == "Linux"
and ansible_service_mgr == "systemd"
ignore_errors: yes
ignore_errors: true
## Bluetooth ##
# Do people seriously depend on Bluetooth? Plug your devices in, silly!
@@ -96,7 +96,7 @@
# pattern: "{{ bluetooth_pattern }}"
# state: stopped
# enabled: no
# ignore_errors: yes
# ignore_errors: true
## NTP ##
@@ -105,7 +105,7 @@
name: "{{ ntp_server }}"
pattern: "{{ ntp_server }}"
state: started
enabled: yes
enabled: true
when: ansible_virtualization_type != 'docker'
and ansible_service_mgr != "runit"
register: ntp_status
@@ -128,7 +128,7 @@
pattern: "{{ item.pattern }}"
state: stopped
enabled: no
ignore_errors: yes
ignore_errors: true
loop:
- {name: "{{ cups }}" , pattern: "{{ cups_pattern }}"}
- {name: "{{ cups_browse }}", pattern: "{{ cups_browse_pattern }}"}
@@ -136,14 +136,13 @@
- name: General | Software | Services | Disable (runit)
shell: |
if [[ -e {{ runit_service_dir }}/{{ item.name }} ]]; then
if [[ -e {{ runit_service_dir }}/{{ item.name }} ]]; then
rm -v {{ runit_service_dir }}/{{ item.name }}
fi
ignore_errors: yes
ignore_errors: true
loop:
- {name: "{{ cups }}" }
- {name: "{{ cups_pattern }}" }
- {name: "{{ cups_browse }}" }
- {name: "{{ cups_browse_pattern }}"}
when: ansible_service_mgr == "runit"