From 386eb58767474cbd74e001078e38e64ba21c00e6 Mon Sep 17 00:00:00 2001 From: Hyperling Date: Fri, 2 Oct 2026 08:07:27 -0700 Subject: [PATCH] Ansible does not use `!`, use `not` instead. --- tasks/general/acct_mgmt/provision_config.yml | 2 +- tasks/workstation/linux/software/lutris.yml | 6 +++--- tasks/workstation/linux/software/vscodium.yml | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/tasks/general/acct_mgmt/provision_config.yml b/tasks/general/acct_mgmt/provision_config.yml index 3e95fb4..68f9a5e 100644 --- a/tasks/general/acct_mgmt/provision_config.yml +++ b/tasks/general/acct_mgmt/provision_config.yml @@ -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 ## diff --git a/tasks/workstation/linux/software/lutris.yml b/tasks/workstation/linux/software/lutris.yml index fa49821..62f73e7 100644 --- a/tasks/workstation/linux/software/lutris.yml +++ b/tasks/workstation/linux/software/lutris.yml @@ -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 diff --git a/tasks/workstation/linux/software/vscodium.yml b/tasks/workstation/linux/software/vscodium.yml index d45ff1c..6279d8f 100644 --- a/tasks/workstation/linux/software/vscodium.yml +++ b/tasks/workstation/linux/software/vscodium.yml @@ -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"