Ansible does not use !, use not instead.

This commit is contained in:
me
2026-10-02 08:07:27 -07:00
parent 864853f5dc
commit 386eb58767
3 changed files with 6 additions and 6 deletions
+1 -1
View File
@@ -428,7 +428,7 @@
- name: General | Account Management | Provisioning Configuration | Exit Check
shell: echo "Please configure the config files in {{ prov_dir }} then try again." && exit 1
when: ! provision
when: not provision
## Display values ##
+3 -3
View File
@@ -69,7 +69,7 @@
name:
- lutris
state: absent
when: ansible_architecture != "aarch64" and ! gaming
when: ansible_architecture != "aarch64" and not gaming
## Uninstall Repo ##
@@ -78,7 +78,7 @@
repo: ppa:lutris-team/lutris
update_cache: true
state: absent
when: ansible_distribution in ("Ubuntu") and ! gaming
when: ansible_distribution in ("Ubuntu") and not gaming
ignore_errors: true
- name: Workstation | Linux | Software | Lutris | Remove PPA (Debian)
@@ -87,4 +87,4 @@
- "mv {{ lutris_source_list }} ~/TRASH/"
- "mv {{ lutris_keyfile }} ~/TRASH/"
- "sudo apt update"
when: ansible_distribution in ("Debian") and ! gaming and lutris_source_exists.stat.exists
when: ansible_distribution in ("Debian") and not gaming and lutris_source_exists.stat.exists
@@ -60,7 +60,7 @@
name:
- codium
state: absent
when: ! coding
when: not coding
## Remove Repo ##
@@ -70,7 +70,7 @@
- "mv {{ vscodium_source_list }} ~/TRASH/"
- "mv /etc/apt/keyrings/vscodium*.gpg ~/TRASH/"
- "sudo apt update"
when: ! coding
when: not coding
and vscodium_source_exists.stat.exists
when: ansible_pkg_mgr == "apt"