Use true instead of yes.
This commit is contained in:
@@ -29,8 +29,8 @@
|
||||
{{ nixos_swap }}
|
||||
}
|
||||
state: present
|
||||
backup: yes
|
||||
create: yes
|
||||
backup: true
|
||||
create: true
|
||||
|
||||
|
||||
# Maybe do home manager here? Or should it be under Workstation? Or maybe
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
# so resetting the value to apt doesn't work. Just going to move it.
|
||||
shell: "mv `which zypper` `which zypper`.zz.`date +%Y%m%d`"
|
||||
register: parrotos_zypper_removed
|
||||
ignore_errors: yes
|
||||
ignore_errors: true
|
||||
when: ansible_distribution == "Parrot OS"
|
||||
|
||||
- name: General | Software | Packages | Fix Parrot OS (zypper), Exit Incoming
|
||||
@@ -23,13 +23,13 @@
|
||||
# have sudo or anything in it. Hide it in preference for .bashrc update function.
|
||||
- name: General | Software | Packages | Fix Parrot OS 2 (update)
|
||||
shell: "mv `which update` `which update`.zz.`date +%Y%m%d`"
|
||||
ignore_errors: yes
|
||||
ignore_errors: true
|
||||
when: ansible_distribution == "Parrot OS"
|
||||
|
||||
|
||||
- name: General | Software | Packages | Cache Refresh (Apt and Pacman)
|
||||
package:
|
||||
update_cache: yes
|
||||
update_cache: true
|
||||
name: htop
|
||||
when: ansible_pkg_mgr in ["apt", "pacman"]
|
||||
|
||||
@@ -77,7 +77,7 @@
|
||||
- "{{ microcode_intel }}"
|
||||
state: present
|
||||
when: branch == "dev"
|
||||
ignore_errors: yes
|
||||
ignore_errors: true
|
||||
|
||||
- name: General | Software | Packages | Add Generic Kernel + Tools (Ubuntu)
|
||||
package:
|
||||
@@ -88,7 +88,7 @@
|
||||
- linux-tools-common
|
||||
state: present
|
||||
when: ansible_distribution == "Ubuntu"
|
||||
ignore_errors: yes
|
||||
ignore_errors: true
|
||||
|
||||
- name: General | Software | Packages | Add Generic Kernel + Headers (Debian)
|
||||
package:
|
||||
@@ -97,7 +97,7 @@
|
||||
- linux-headers-amd64
|
||||
state: present
|
||||
when: ansible_distribution == "Debian"
|
||||
ignore_errors: yes
|
||||
ignore_errors: true
|
||||
|
||||
- name: General | Software | Packages | Install killall (Looking at you, Debian)
|
||||
package:
|
||||
@@ -150,7 +150,7 @@
|
||||
state: stopped
|
||||
enabled: no
|
||||
when: ansible_distribution != "Ubuntu"
|
||||
ignore_errors: yes
|
||||
ignore_errors: true
|
||||
|
||||
- name: General | Software | Packages | Remove Snap (Besides Ubuntu)
|
||||
package:
|
||||
@@ -158,7 +158,7 @@
|
||||
- snapd
|
||||
state: absent
|
||||
when: ansible_distribution != "Ubuntu"
|
||||
ignore_errors: yes
|
||||
ignore_errors: true
|
||||
|
||||
- name: General | Software | Packages | Other Debian Packages
|
||||
package:
|
||||
@@ -166,4 +166,4 @@
|
||||
- usbutils
|
||||
state: present
|
||||
when: ansible_distribution in ("Debian")
|
||||
ignore_errors: yes
|
||||
ignore_errors: true
|
||||
|
||||
@@ -10,11 +10,11 @@
|
||||
- name: Server | Sendmail | Check
|
||||
shell: which postfix
|
||||
register: postfix
|
||||
ignore_errors: yes
|
||||
ignore_errors: true
|
||||
|
||||
- name: Server | Sendmail | Install
|
||||
package:
|
||||
name:
|
||||
name:
|
||||
- "{{ sendmail }}"
|
||||
state: present
|
||||
when: postfix.failed
|
||||
@@ -27,8 +27,8 @@
|
||||
sendmail_msp_queue_enable="YES"
|
||||
marker: "# {mark} MANAGED BY ANSIBLE - sendmail"
|
||||
state: present
|
||||
create: yes
|
||||
backup: yes
|
||||
create: true
|
||||
backup: true
|
||||
when: postfix.failed and ansible_system == "FreeBSD"
|
||||
|
||||
- name: Server | Sendmail | Enable + Start | Main
|
||||
@@ -36,7 +36,7 @@
|
||||
name: "{{ sendmail }}"
|
||||
pattern: "{{ sendmail }}"
|
||||
state: started
|
||||
enabled: yes
|
||||
enabled: true
|
||||
when: postfix.failed
|
||||
|
||||
- name: Server | Sendmail | Enable + Start | Queue
|
||||
@@ -44,5 +44,5 @@
|
||||
name: "{{ sendmail_queue }}"
|
||||
pattern: "{{ sendmail_queue }}"
|
||||
state: started
|
||||
enabled: yes
|
||||
enabled: true
|
||||
when: postfix.failed and ansible_system == "FreeBSD"
|
||||
|
||||
@@ -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"
|
||||
|
||||
|
||||
@@ -36,7 +36,7 @@
|
||||
regexp: '^[\#]?{{ swap_file }}'
|
||||
line: '{{ swap_file }} none swap sw 0 0'
|
||||
state: present
|
||||
backup: yes
|
||||
backup: true
|
||||
when: ansible_distribution != "NixOS"
|
||||
|
||||
# Only run through this file if the ini has been changed from false.
|
||||
|
||||
@@ -73,7 +73,7 @@
|
||||
###
|
||||
###- name: General | Telegraf | Config 1/2
|
||||
### shell: mv {{ telegraf_config }} ~/TRASH/
|
||||
### ignore_errors: yes
|
||||
### ignore_errors: true
|
||||
###
|
||||
###- name: General | Telegraf | Config 2/2
|
||||
### blockinfile:
|
||||
@@ -158,7 +158,7 @@
|
||||
###
|
||||
### marker: '# {mark} MANAGED BY ANSIBLE - telegraf.yml'
|
||||
### state: present
|
||||
### create: yes
|
||||
### create: true
|
||||
|
||||
# Run #
|
||||
|
||||
@@ -170,7 +170,7 @@
|
||||
special_time: "{{ item.freq }}"
|
||||
state: present
|
||||
#disabled: "{{ 'yes' if no_telem else 'no' }}"
|
||||
disabled: yes # 2024-01-25, Downsizing again and will not have Graphana.
|
||||
disabled: true # 2024-01-25, Downsizing again and will not have Graphana.
|
||||
loop:
|
||||
- { "name": "Telegraf Reboot Job" , "freq": "reboot", "command": "{{ telegraf_cmd }}"}
|
||||
- { "name": "Telegraf Keep-Alive Job", "freq": "hourly", "command": "{{ telegraf_watcher }}"}
|
||||
|
||||
Reference in New Issue
Block a user