Compare commits

..
2 Commits
Author SHA1 Message Date
me 198a731f9e lint, hide more warnigns and errors. 2026-10-02 07:49:17 -07:00
me 2917e32498 codium, fix boolean comparisons. 2026-10-02 07:48:55 -07:00
2 changed files with 20 additions and 19 deletions

No files matched your search

+3 -1
View File
@@ -2,9 +2,11 @@
--- ---
skip_list: skip_list:
- fqcn[action-core] - fqcn[action-core]
- command-instead-of-shell
- key-order[task]
warn_list: warn_list:
- command-instead-of-shell
- literal-compare - literal-compare
- ignore-errors - ignore-errors
- no-changed-when - no-changed-when
- yaml[indentation]
+17 -18
View File
@@ -9,18 +9,18 @@
- name: Workstation | Linux | Software | VS Codium - name: Workstation | Linux | Software | VS Codium
block: block:
## Facts ## ## Facts ##
# Paths # Paths
- name: Workstation | Linux | Software | VS Codium | Facts - name: Workstation | Linux | Software | VS Codium | Facts
set_fact: set_fact:
vscodium_source_list: "/etc/apt/sources.list.d/vscodium.list" vscodium_source_list: "/etc/apt/sources.list.d/vscodium.list"
vscodium_keyfile: "/usr/share/keyrings/vscodium.gpg" vscodium_keyfile: "/usr/share/keyrings/vscodium.gpg"
# Checks # Checks
- name: Workstation | Linux | Software | VS Codium | Check PPA - name: Workstation | Linux | Software | VS Codium | Check PPA
stat: stat:
path: "{{ vscodium_source_list }}" path: "{{ vscodium_source_list }}"
@@ -28,9 +28,9 @@
get_checksum: false get_checksum: false
get_mime: false get_mime: false
register: vscodium_source_exists register: vscodium_source_exists
## Install Repo ## ## Install Repo ##
- name: Workstation | Linux | Software | VS Codium | Add PPA - name: Workstation | Linux | Software | VS Codium | Add PPA
shell: "{{ item }}" shell: "{{ item }}"
loop: loop:
@@ -40,39 +40,38 @@
- "echo 'deb [arch=amd64,arm64 signed-by={{ vscodium_keyfile }}] https://download.vscodium.com/debs vscodium main' \ - "echo 'deb [arch=amd64,arm64 signed-by={{ vscodium_keyfile }}] https://download.vscodium.com/debs vscodium main' \
| sudo tee {{ vscodium_source_list }}" | sudo tee {{ vscodium_source_list }}"
- "sudo apt update" - "sudo apt update"
when: coding == true when: coding
and not vscodium_source_exists.stat.exists and not vscodium_source_exists.stat.exists
## Install Package ## ## Install Package ##
- name: Workstation | Linux | Software | VS Codium | Install - name: Workstation | Linux | Software | VS Codium | Install
package: package:
name: name:
- codium - codium
state: present state: present
when: ansible_pkg_mgr == "apt" when: ansible_pkg_mgr == "apt"
and coding == true and coding
## Remove Package ## ## Remove Package ##
- name: Workstation | Linux | Software | VS Codium | Uninstall - name: Workstation | Linux | Software | VS Codium | Uninstall
package: package:
name: name:
- codium - codium
state: absent state: absent
when: coding != true when: ! coding
## Remove Repo ## ## Remove Repo ##
- name: Workstation | Linux | Software | VS Codium | Remove PPA - name: Workstation | Linux | Software | VS Codium | Remove PPA
shell: "{{ item }}" shell: "{{ item }}"
loop: loop:
- "mv {{ vscodium_source_list }} ~/TRASH/" - "mv {{ vscodium_source_list }} ~/TRASH/"
- "mv /etc/apt/keyrings/vscodium*.gpg ~/TRASH/" - "mv /etc/apt/keyrings/vscodium*.gpg ~/TRASH/"
- "sudo apt update" - "sudo apt update"
when: coding != true when: ! coding
and vscodium_source_exists.stat.exists and vscodium_source_exists.stat.exists
when: ansible_pkg_mgr == "apt" when: ansible_pkg_mgr == "apt"
and ansible_distribution in ("Debian", "Ubuntu") and ansible_distribution in ("Debian", "Ubuntu")