Change tabs to spaces.
This commit is contained in:
@@ -1,30 +1,38 @@
|
||||
---
|
||||
# Install VPN client(s).
|
||||
# https://mullvad.net/en/help/install-mullvad-app-linux
|
||||
|
||||
- name: Workstation | Software | VPN | Mullvad | Add Repo [apt]
|
||||
shell: "{{ item }}"
|
||||
loop:
|
||||
- sudo curl -fsSLo /usr/share/keyrings/mullvad-keyring.asc https://repository.mullvad.net/deb/mullvad-keyring.asc
|
||||
- echo "deb [signed-by=/usr/share/keyrings/mullvad-keyring.asc arch=$( dpkg --print-architecture )] https://repository.mullvad.net/deb/stable $(lsb_release -cs) main" | sudo tee /etc/apt/sources.list.d/mullvad.list
|
||||
- apt update
|
||||
when: ansible_pkg_mgr == "apt"
|
||||
- name: Workstation | Software | VPN | Mullvad
|
||||
block:
|
||||
|
||||
- name: Workstation | Software | VPN | Mullvad | Add Repo [dnf]
|
||||
shell: "{{ item }}"
|
||||
loop:
|
||||
- sudo dnf config-manager --add-repo https://repository.mullvad.net/rpm/stable/mullvad.repo
|
||||
when: ansible_pkg_mgr == "dnf"
|
||||
# https://mullvad.net/en/help/install-mullvad-app-linux
|
||||
|
||||
- name: Workstation | Software | VPN | Install
|
||||
package:
|
||||
name:
|
||||
- mullvad-vpn
|
||||
state: present
|
||||
- name: Workstation | Software | VPN | Mullvad | Add Repo [apt]
|
||||
shell: "{{ item }}"
|
||||
loop:
|
||||
- sudo curl -fsSLo /usr/share/keyrings/mullvad-keyring.asc https://repository.mullvad.net/deb/mullvad-keyring.asc
|
||||
- echo "deb [signed-by=/usr/share/keyrings/mullvad-keyring.asc arch=$( dpkg --print-architecture )] https://repository.mullvad.net/deb/stable $(lsb_release -cs) main" | sudo tee /etc/apt/sources.list.d/mullvad.list
|
||||
- apt update
|
||||
when: ansible_pkg_mgr == "apt"
|
||||
|
||||
- name: Workstation | Software | VPN | Mullvad | Add Repo [dnf]
|
||||
shell: "{{ item }}"
|
||||
loop:
|
||||
- sudo dnf config-manager --add-repo https://repository.mullvad.net/rpm/stable/mullvad.repo
|
||||
when: ansible_pkg_mgr == "dnf"
|
||||
|
||||
- name: Workstation | Software | VPN | Install
|
||||
package:
|
||||
name:
|
||||
- mullvad-vpn
|
||||
state: present
|
||||
|
||||
- name: Workstation | Software | VPN | Mullvad | Symlink GUI
|
||||
ansible.builtin.file:
|
||||
src: "/opt/Mullvad VPN/mullvad-vpn"
|
||||
dest: "{{ global_bin }}/mullvad-vpn"
|
||||
state: link
|
||||
force: true
|
||||
|
||||
- name: Workstation | Software | VPN | Mullvad | Symlink GUI
|
||||
ansible.builtin.file:
|
||||
src: "/opt/Mullvad VPN/mullvad-vpn"
|
||||
dest: "{{ global_bin }}/mullvad-vpn"
|
||||
state: link
|
||||
force: true
|
||||
when: ansible_distribution in ("Debian", "Ubuntu", "Arch", "Artix")
|
||||
|
||||
# TBD: VPNs for distros like Devuan.
|
||||
|
||||
Reference in New Issue
Block a user