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