Change tabs to spaces.
This commit is contained in:
@@ -1,5 +1,9 @@
|
|||||||
---
|
---
|
||||||
# Install VPN client(s).
|
# Install VPN client(s).
|
||||||
|
|
||||||
|
- name: Workstation | Software | VPN | Mullvad
|
||||||
|
block:
|
||||||
|
|
||||||
# https://mullvad.net/en/help/install-mullvad-app-linux
|
# https://mullvad.net/en/help/install-mullvad-app-linux
|
||||||
|
|
||||||
- name: Workstation | Software | VPN | Mullvad | Add Repo [apt]
|
- name: Workstation | Software | VPN | Mullvad | Add Repo [apt]
|
||||||
@@ -28,3 +32,7 @@
|
|||||||
dest: "{{ global_bin }}/mullvad-vpn"
|
dest: "{{ global_bin }}/mullvad-vpn"
|
||||||
state: link
|
state: link
|
||||||
force: true
|
force: true
|
||||||
|
|
||||||
|
when: ansible_distribution in ("Debian", "Ubuntu", "Arch", "Artix")
|
||||||
|
|
||||||
|
# TBD: VPNs for distros like Devuan.
|
||||||
|
|||||||
@@ -7,6 +7,9 @@
|
|||||||
# This also exists but was not utilized:
|
# This also exists but was not utilized:
|
||||||
# https://gitlab.com/paulcarroty/vscodium-deb-rpm-repo
|
# https://gitlab.com/paulcarroty/vscodium-deb-rpm-repo
|
||||||
|
|
||||||
|
- name: Workstation | Linux | Software | VS Codium
|
||||||
|
block:
|
||||||
|
|
||||||
## Facts ##
|
## Facts ##
|
||||||
|
|
||||||
# Paths
|
# Paths
|
||||||
@@ -15,7 +18,6 @@
|
|||||||
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"
|
||||||
when: ansible_pkg_mgr == "apt"
|
|
||||||
|
|
||||||
# Checks
|
# Checks
|
||||||
|
|
||||||
@@ -26,7 +28,6 @@
|
|||||||
get_checksum: false
|
get_checksum: false
|
||||||
get_mime: false
|
get_mime: false
|
||||||
register: vscodium_source_exists
|
register: vscodium_source_exists
|
||||||
when: ansible_pkg_mgr == "apt"
|
|
||||||
|
|
||||||
## Install Repo ##
|
## Install Repo ##
|
||||||
|
|
||||||
@@ -39,8 +40,7 @@
|
|||||||
- "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: ansible_pkg_mgr == "apt"
|
when: coding == true
|
||||||
and coding == true
|
|
||||||
and not vscodium_source_exists.stat.exists
|
and not vscodium_source_exists.stat.exists
|
||||||
|
|
||||||
## Install Package ##
|
## Install Package ##
|
||||||
@@ -60,8 +60,7 @@
|
|||||||
name:
|
name:
|
||||||
- codium
|
- codium
|
||||||
state: absent
|
state: absent
|
||||||
when: ansible_pkg_mgr == "apt"
|
when: coding != true
|
||||||
and coding != true
|
|
||||||
|
|
||||||
## Remove Repo ##
|
## Remove Repo ##
|
||||||
|
|
||||||
@@ -71,6 +70,9 @@
|
|||||||
- "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: ansible_pkg_mgr == "apt"
|
when: coding != true
|
||||||
and coding != true
|
|
||||||
and vscodium_source_exists.stat.exists
|
and vscodium_source_exists.stat.exists
|
||||||
|
|
||||||
|
when: ansible_pkg_mgr == "apt"
|
||||||
|
and ansible_distribution in ("Debian", "Ubuntu")
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user