Change tabs to spaces.
This commit is contained in:
@@ -1,8 +1,12 @@
|
|||||||
---
|
---
|
||||||
# Install VPN client(s).
|
# Install VPN client(s).
|
||||||
# https://mullvad.net/en/help/install-mullvad-app-linux
|
|
||||||
|
|
||||||
- name: Workstation | Software | VPN | Mullvad | Add Repo [apt]
|
- name: Workstation | Software | VPN | Mullvad
|
||||||
|
block:
|
||||||
|
|
||||||
|
# https://mullvad.net/en/help/install-mullvad-app-linux
|
||||||
|
|
||||||
|
- name: Workstation | Software | VPN | Mullvad | Add Repo [apt]
|
||||||
shell: "{{ item }}"
|
shell: "{{ item }}"
|
||||||
loop:
|
loop:
|
||||||
- sudo curl -fsSLo /usr/share/keyrings/mullvad-keyring.asc https://repository.mullvad.net/deb/mullvad-keyring.asc
|
- sudo curl -fsSLo /usr/share/keyrings/mullvad-keyring.asc https://repository.mullvad.net/deb/mullvad-keyring.asc
|
||||||
@@ -10,21 +14,25 @@
|
|||||||
- apt update
|
- apt update
|
||||||
when: ansible_pkg_mgr == "apt"
|
when: ansible_pkg_mgr == "apt"
|
||||||
|
|
||||||
- name: Workstation | Software | VPN | Mullvad | Add Repo [dnf]
|
- name: Workstation | Software | VPN | Mullvad | Add Repo [dnf]
|
||||||
shell: "{{ item }}"
|
shell: "{{ item }}"
|
||||||
loop:
|
loop:
|
||||||
- sudo dnf config-manager --add-repo https://repository.mullvad.net/rpm/stable/mullvad.repo
|
- sudo dnf config-manager --add-repo https://repository.mullvad.net/rpm/stable/mullvad.repo
|
||||||
when: ansible_pkg_mgr == "dnf"
|
when: ansible_pkg_mgr == "dnf"
|
||||||
|
|
||||||
- name: Workstation | Software | VPN | Install
|
- name: Workstation | Software | VPN | Install
|
||||||
package:
|
package:
|
||||||
name:
|
name:
|
||||||
- mullvad-vpn
|
- mullvad-vpn
|
||||||
state: present
|
state: present
|
||||||
|
|
||||||
- name: Workstation | Software | VPN | Mullvad | Symlink GUI
|
- name: Workstation | Software | VPN | Mullvad | Symlink GUI
|
||||||
ansible.builtin.file:
|
ansible.builtin.file:
|
||||||
src: "/opt/Mullvad VPN/mullvad-vpn"
|
src: "/opt/Mullvad VPN/mullvad-vpn"
|
||||||
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,30 +7,31 @@
|
|||||||
# 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
|
||||||
|
|
||||||
## Facts ##
|
- name: Workstation | Linux | Software | VS Codium
|
||||||
|
block:
|
||||||
|
|
||||||
# Paths
|
## Facts ##
|
||||||
|
|
||||||
- name: Workstation | Linux | Software | VS Codium | Facts
|
# Paths
|
||||||
|
|
||||||
|
- 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"
|
||||||
when: ansible_pkg_mgr == "apt"
|
|
||||||
|
|
||||||
# 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 }}"
|
||||||
get_attributes: false
|
get_attributes: false
|
||||||
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 ##
|
||||||
|
|
||||||
- name: Workstation | Linux | Software | VS Codium | Add PPA
|
- name: Workstation | Linux | Software | VS Codium | Add PPA
|
||||||
shell: "{{ item }}"
|
shell: "{{ item }}"
|
||||||
loop:
|
loop:
|
||||||
- "wget -qO - https://gitlab.com/paulcarroty/vscodium-deb-rpm-repo/raw/master/pub.gpg \
|
- "wget -qO - https://gitlab.com/paulcarroty/vscodium-deb-rpm-repo/raw/master/pub.gpg \
|
||||||
@@ -39,13 +40,12 @@
|
|||||||
- "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 ##
|
||||||
|
|
||||||
- name: Workstation | Linux | Software | VS Codium | Install
|
- name: Workstation | Linux | Software | VS Codium | Install
|
||||||
package:
|
package:
|
||||||
name:
|
name:
|
||||||
- codium
|
- codium
|
||||||
@@ -53,24 +53,26 @@
|
|||||||
when: ansible_pkg_mgr == "apt"
|
when: ansible_pkg_mgr == "apt"
|
||||||
and coding == true
|
and coding == true
|
||||||
|
|
||||||
## 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: ansible_pkg_mgr == "apt"
|
when: coding != true
|
||||||
and coding != true
|
|
||||||
|
|
||||||
## 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: 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