Compare commits

...

2 Commits

Author SHA1 Message Date
me a1935588a4 Refactor when clauses. 2026-07-30 11:06:39 -07:00
me 44060a6d1d Do not require runit to enable cron. It's already working anyways. 2026-07-30 11:06:28 -07:00
2 changed files with 11 additions and 4 deletions
+1
View File
@@ -23,6 +23,7 @@
enabled: yes
when: ansible_virtualization_type != 'docker'
and ansible_service_mgr == "runit"
ignore_errors: true # Service module seems experimental for this init system.
## SSHD ##
+10 -4
View File
@@ -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