From 864853f5dc4740191cd1021feaf7543438a97e68 Mon Sep 17 00:00:00 2001 From: Hyperling Date: Fri, 2 Oct 2026 08:00:48 -0700 Subject: [PATCH] Use `false` instead of `no`. --- tasks/general/acct_mgmt/users.yml | 10 +++++----- tasks/general/software/packages.yml | 2 +- tasks/general/software/services.yml | 4 ++-- tasks/general/tests/lynis.yml | 2 +- tasks/miner/cron/ansible.yml | 2 +- tasks/miner/drivers/amdgpu.yml | 6 +++--- tasks/miner/software/nanominer.yml | 10 +++++----- tasks/server/cron/certbot.yml | 2 +- tasks/server/software/onlyoffice.yml | 2 +- tasks/workstation/freebsd/cron/ansible.yml | 2 +- tasks/workstation/linux/software/tlp.yml | 2 +- tasks/workstation/shared/settings/gnome.yml | 6 +++--- 12 files changed, 25 insertions(+), 25 deletions(-) diff --git a/tasks/general/acct_mgmt/users.yml b/tasks/general/acct_mgmt/users.yml index fd19399..17e2395 100644 --- a/tasks/general/acct_mgmt/users.yml +++ b/tasks/general/acct_mgmt/users.yml @@ -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 }}" diff --git a/tasks/general/software/packages.yml b/tasks/general/software/packages.yml index 823e3f0..10f823b 100644 --- a/tasks/general/software/packages.yml +++ b/tasks/general/software/packages.yml @@ -148,7 +148,7 @@ name: snapd pattern: snapd state: stopped - enabled: no + enabled: false when: ansible_distribution != "Ubuntu" ignore_errors: true diff --git a/tasks/general/software/services.yml b/tasks/general/software/services.yml index 1697dc1..72c9d86 100644 --- a/tasks/general/software/services.yml +++ b/tasks/general/software/services.yml @@ -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 }}"} diff --git a/tasks/general/tests/lynis.yml b/tasks/general/tests/lynis.yml index ead3b53..c0c541a 100644 --- a/tasks/general/tests/lynis.yml +++ b/tasks/general/tests/lynis.yml @@ -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 }}" diff --git a/tasks/miner/cron/ansible.yml b/tasks/miner/cron/ansible.yml index 1f3f09b..2e00e6d 100644 --- a/tasks/miner/cron/ansible.yml +++ b/tasks/miner/cron/ansible.yml @@ -10,7 +10,7 @@ job: sudo reboot special_time: daily state: present - disabled: no + disabled: false ## Security ## diff --git a/tasks/miner/drivers/amdgpu.yml b/tasks/miner/drivers/amdgpu.yml index da1a9a6..d4c35e3 100644 --- a/tasks/miner/drivers/amdgpu.yml +++ b/tasks/miner/drivers/amdgpu.yml @@ -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 diff --git a/tasks/miner/software/nanominer.yml b/tasks/miner/software/nanominer.yml index 6985ad5..62e99f9 100644 --- a/tasks/miner/software/nanominer.yml +++ b/tasks/miner/software/nanominer.yml @@ -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 diff --git a/tasks/server/cron/certbot.yml b/tasks/server/cron/certbot.yml index 8f21ea4..365fe4f 100644 --- a/tasks/server/cron/certbot.yml +++ b/tasks/server/cron/certbot.yml @@ -12,5 +12,5 @@ job: "{{ certbot.stdout }} renew" special_time: weekly state: present - disabled: no + disabled: false when: certbot and certbot.stdout is defined diff --git a/tasks/server/software/onlyoffice.yml b/tasks/server/software/onlyoffice.yml index 4ed7770..67871fc 100644 --- a/tasks/server/software/onlyoffice.yml +++ b/tasks/server/software/onlyoffice.yml @@ -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" } diff --git a/tasks/workstation/freebsd/cron/ansible.yml b/tasks/workstation/freebsd/cron/ansible.yml index ddfd853..ef76f97 100644 --- a/tasks/workstation/freebsd/cron/ansible.yml +++ b/tasks/workstation/freebsd/cron/ansible.yml @@ -8,4 +8,4 @@ special_time: weekly job: "sudo freebsd-update cron -t me@hyperling.com" state: present - disabled: no + disabled: false diff --git a/tasks/workstation/linux/software/tlp.yml b/tasks/workstation/linux/software/tlp.yml index 5c1b44a..a775656 100644 --- a/tasks/workstation/linux/software/tlp.yml +++ b/tasks/workstation/linux/software/tlp.yml @@ -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" diff --git a/tasks/workstation/shared/settings/gnome.yml b/tasks/workstation/shared/settings/gnome.yml index 20fea4b..a3e051e 100644 --- a/tasks/workstation/shared/settings/gnome.yml +++ b/tasks/workstation/shared/settings/gnome.yml @@ -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