Use false instead of no.
This commit is contained in:
@@ -14,7 +14,7 @@
|
||||
line: "{{ bash_exec.stdout }}"
|
||||
insertbefore: "# End of file"
|
||||
backup: true
|
||||
create: no
|
||||
create: false
|
||||
state: present
|
||||
when: ansible_pkg_mgr == "pacman"
|
||||
|
||||
@@ -30,7 +30,7 @@
|
||||
# line: "{{ zsh_exec.stdout }}"
|
||||
# insertbefore: "# End of file"
|
||||
# backup: true
|
||||
# create: no
|
||||
# create: false
|
||||
# state: present
|
||||
# when: ansible_pkg_mgr == "pacman"
|
||||
|
||||
@@ -1325,7 +1325,7 @@
|
||||
marker: '# {mark} MANAGED BY ANSIBLE | Aliases'
|
||||
state: present
|
||||
create: true
|
||||
backup: no
|
||||
backup: false
|
||||
loop:
|
||||
- ".profile"
|
||||
- ".xprofile"
|
||||
@@ -1346,7 +1346,7 @@
|
||||
marker: '# {mark} MANAGED BY ANSIBLE | Aliases'
|
||||
state: present
|
||||
create: true
|
||||
backup: no
|
||||
backup: false
|
||||
loop:
|
||||
- "{{ user_root.home }}"
|
||||
- "{{ user_user.home }}"
|
||||
@@ -1362,7 +1362,7 @@
|
||||
marker: '# {mark} MANAGED BY ANSIBLE | Aliases'
|
||||
state: present
|
||||
create: true
|
||||
backup: no
|
||||
backup: false
|
||||
loop:
|
||||
- "{{ user_root.home }}"
|
||||
- "{{ user_user.home }}"
|
||||
|
||||
@@ -148,7 +148,7 @@
|
||||
name: snapd
|
||||
pattern: snapd
|
||||
state: stopped
|
||||
enabled: no
|
||||
enabled: false
|
||||
when: ansible_distribution != "Ubuntu"
|
||||
ignore_errors: true
|
||||
|
||||
|
||||
@@ -95,7 +95,7 @@
|
||||
# name: "{{ bluetooth }}"
|
||||
# pattern: "{{ bluetooth_pattern }}"
|
||||
# state: stopped
|
||||
# enabled: no
|
||||
# enabled: false
|
||||
# ignore_errors: true
|
||||
|
||||
## NTP ##
|
||||
@@ -127,7 +127,7 @@
|
||||
name: "{{ item.name }}"
|
||||
pattern: "{{ item.pattern }}"
|
||||
state: stopped
|
||||
enabled: no
|
||||
enabled: false
|
||||
ignore_errors: true
|
||||
loop:
|
||||
- {name: "{{ cups }}" , pattern: "{{ cups_pattern }}"}
|
||||
|
||||
@@ -37,7 +37,7 @@
|
||||
path: "{{ lynis_install_dir }}"
|
||||
state: directory
|
||||
mode: '0755'
|
||||
recurse: no
|
||||
recurse: false
|
||||
|
||||
- name: General | Tests | Lynis | Run System Audit
|
||||
shell: "{{ item }}"
|
||||
|
||||
@@ -10,7 +10,7 @@
|
||||
job: sudo reboot
|
||||
special_time: daily
|
||||
state: present
|
||||
disabled: no
|
||||
disabled: false
|
||||
|
||||
|
||||
## Security ##
|
||||
|
||||
@@ -96,7 +96,7 @@
|
||||
special_time: reboot
|
||||
job: "{{ amdgpu_cron_cmd }}"
|
||||
state: present
|
||||
disabled: no
|
||||
disabled: false
|
||||
when: amdgpu_install.failed and hwe_kernel.stdout != "0" and ga_kernel.failed
|
||||
|
||||
- name: Miner | Driver | AMDGPU | Reboot To GA Kernel
|
||||
@@ -145,7 +145,7 @@
|
||||
special_time: reboot
|
||||
job: "{{ amdgpu_cron_cmd }}"
|
||||
state: present
|
||||
disabled: no
|
||||
disabled: false
|
||||
when: amdgpu_install.failed and hwe_kernel.stdout != "0"
|
||||
|
||||
# This reboot may not be necessary.
|
||||
@@ -184,7 +184,7 @@
|
||||
special_time: reboot
|
||||
job: "{{ amdgpu_cron_cmd }}"
|
||||
state: present
|
||||
disabled: no
|
||||
disabled: false
|
||||
when: amdgpu_install.failed
|
||||
|
||||
- name: Miner | Driver | AMDGPU | Reboot To GA Kernel
|
||||
|
||||
@@ -62,7 +62,7 @@
|
||||
path: "{{ nanominer_config }}"
|
||||
line: "pool{{item.priority}} = {{ item.name }}"
|
||||
state: present
|
||||
create: no
|
||||
create: false
|
||||
loop: "{{ cpu_pool }}"
|
||||
become: true
|
||||
become_user: mfn
|
||||
@@ -73,7 +73,7 @@
|
||||
path: "{{ nanominer_config }}"
|
||||
line: ";;;;;;;;;;;;; END CPU"
|
||||
state: present
|
||||
create: no
|
||||
create: false
|
||||
become: true
|
||||
become_user: mfn
|
||||
when: nanominer_cpu != false
|
||||
@@ -89,7 +89,7 @@
|
||||
;
|
||||
marker: ';'
|
||||
state: present
|
||||
create: no
|
||||
create: false
|
||||
become: true
|
||||
become_user: mfn
|
||||
when: nanominer_config is file
|
||||
@@ -131,7 +131,7 @@
|
||||
path: "{{ nanominer_config }}"
|
||||
line: "pool{{item.priority}} = {{ item.name }}"
|
||||
state: present
|
||||
create: no
|
||||
create: false
|
||||
loop: "{{ gpu_pool }}"
|
||||
become: true
|
||||
become_user: mfn
|
||||
@@ -142,7 +142,7 @@
|
||||
path: "{{ nanominer_config }}"
|
||||
line: ";;;;;;;;;;;;; END GPU"
|
||||
state: present
|
||||
create: no
|
||||
create: false
|
||||
become: true
|
||||
become_user: mfn
|
||||
when: nanominer_gpu != false
|
||||
|
||||
@@ -12,5 +12,5 @@
|
||||
job: "{{ certbot.stdout }} renew"
|
||||
special_time: weekly
|
||||
state: present
|
||||
disabled: no
|
||||
disabled: false
|
||||
when: certbot and certbot.stdout is defined
|
||||
|
||||
@@ -84,7 +84,7 @@
|
||||
# regexp: '{{ item.regexp }}'
|
||||
# line: '{{ item.line }}; # MANAGED BY ANSIBLE'
|
||||
# state: present
|
||||
# create: no
|
||||
# create: false
|
||||
# backup: true
|
||||
# loop:
|
||||
# - { "regexp": "ssl_certificate ", "line": " ssl_certificate /etc/letsencrypt/live/{{ ansible_hostname }}.{{ domain }}/fullchain.pem" }
|
||||
|
||||
@@ -8,4 +8,4 @@
|
||||
special_time: weekly
|
||||
job: "sudo freebsd-update cron -t me@hyperling.com"
|
||||
state: present
|
||||
disabled: no
|
||||
disabled: false
|
||||
|
||||
@@ -186,7 +186,7 @@
|
||||
marker: '# {mark} MANAGED BY ANSIBLE | tlp'
|
||||
state: present
|
||||
create: true
|
||||
backup: no
|
||||
backup: false
|
||||
loop:
|
||||
- "{{ user_user.home }}/.bashrc"
|
||||
- "{{ user_user.home }}/.zshrc"
|
||||
|
||||
@@ -86,7 +86,7 @@
|
||||
repo: https://github.com/micheleg/dash-to-dock.git
|
||||
dest: "~/TRASH/dash-to-dock/"
|
||||
clone: true
|
||||
force: no
|
||||
force: false
|
||||
version: master
|
||||
become_user: "{{ user }}"
|
||||
when: ansible_distribution not in ("Ubuntu") and dash_to_dock_exists.failed
|
||||
@@ -446,8 +446,8 @@
|
||||
# TBD: No longer used. Remove in 2027.
|
||||
marker: '# {mark} MANAGED BY ANSIBLE | NixOS GNOME Settings'
|
||||
state: present
|
||||
create: no
|
||||
backup: no
|
||||
create: false
|
||||
backup: false
|
||||
become_user: "{{ user }}"
|
||||
loop:
|
||||
- .bashrc
|
||||
|
||||
Reference in New Issue
Block a user