codium, fix boolean comparisons.
This commit is contained in:
@@ -40,7 +40,7 @@
|
||||
- "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: coding == true
|
||||
when: coding
|
||||
and not vscodium_source_exists.stat.exists
|
||||
|
||||
## Install Package ##
|
||||
@@ -51,7 +51,7 @@
|
||||
- codium
|
||||
state: present
|
||||
when: ansible_pkg_mgr == "apt"
|
||||
and coding == true
|
||||
and coding
|
||||
|
||||
## Remove Package ##
|
||||
|
||||
@@ -60,7 +60,7 @@
|
||||
name:
|
||||
- codium
|
||||
state: absent
|
||||
when: coding != true
|
||||
when: ! coding
|
||||
|
||||
## Remove Repo ##
|
||||
|
||||
@@ -70,9 +70,8 @@
|
||||
- "mv {{ vscodium_source_list }} ~/TRASH/"
|
||||
- "mv /etc/apt/keyrings/vscodium*.gpg ~/TRASH/"
|
||||
- "sudo apt update"
|
||||
when: coding != true
|
||||
when: ! coding
|
||||
and vscodium_source_exists.stat.exists
|
||||
|
||||
when: ansible_pkg_mgr == "apt"
|
||||
and ansible_distribution in ("Debian", "Ubuntu")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user