From a1935588a42bc491232ead77bf3fcdeaf05b7367 Mon Sep 17 00:00:00 2001 From: Hyperling Date: Thu, 30 Jul 2026 11:06:39 -0700 Subject: [PATCH] Refactor when clauses. --- tasks/workstation/linux/software/vscodium.yml | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/tasks/workstation/linux/software/vscodium.yml b/tasks/workstation/linux/software/vscodium.yml index a503844..c99e75e 100644 --- a/tasks/workstation/linux/software/vscodium.yml +++ b/tasks/workstation/linux/software/vscodium.yml @@ -39,7 +39,9 @@ - "echo 'deb [arch=amd64,arm64 signed-by={{ vscodium_keyfile }}] https://download.vscodium.com/debs vscodium main' \ | sudo tee {{ vscodium_source_list }}" - "sudo apt update" - when: ansible_pkg_mgr == "apt" and coding == true and not vscodium_source_exists.stat.exists + when: ansible_pkg_mgr == "apt" + and coding == true + and not vscodium_source_exists.stat.exists ## Install Package ## @@ -48,7 +50,8 @@ name: - codium state: present - when: ansible_pkg_mgr == "apt" and coding == true + when: ansible_pkg_mgr == "apt" + and coding == true ## Remove Package ## @@ -57,7 +60,8 @@ name: - codium state: absent - when: ansible_pkg_mgr == "apt" and coding != true + when: ansible_pkg_mgr == "apt" + and coding != true ## Remove Repo ## @@ -67,4 +71,6 @@ - "mv {{ vscodium_source_list }} ~/TRASH/" - "mv /etc/apt/keyrings/vscodium*.gpg ~/TRASH/" - "sudo apt update" - when: ansible_pkg_mgr == "apt" and coding != true and vscodium_source_exists.stat.exists + when: ansible_pkg_mgr == "apt" + and coding != true + and vscodium_source_exists.stat.exists