vpn, allow the script removal to fail since it may not exist yet.
This commit is contained in:
@@ -13,13 +13,13 @@
|
|||||||
- 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
|
- 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
|
- 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:
|
||||||
@@ -33,7 +33,7 @@
|
|||||||
state: present
|
state: present
|
||||||
when: ansible_pkg_mgr == "pacman"
|
when: ansible_pkg_mgr == "pacman"
|
||||||
and ansible_service_mgr == "runit"
|
and ansible_service_mgr == "runit"
|
||||||
|
|
||||||
when: ansible_distribution in ("Debian", "Ubuntu", "Arch", "Artix")
|
when: ansible_distribution in ("Debian", "Ubuntu", "Arch", "Artix")
|
||||||
|
|
||||||
## Specific Distros ##
|
## Specific Distros ##
|
||||||
@@ -52,7 +52,7 @@
|
|||||||
mullvad_repack_dir: "{{ devuan_mullvad_dir }}/mullvad_repack"
|
mullvad_repack_dir: "{{ devuan_mullvad_dir }}/mullvad_repack"
|
||||||
|
|
||||||
- name: Workstation | Software | VPN | Mullvad | Devuan | Check
|
- name: Workstation | Software | VPN | Mullvad | Devuan | Check
|
||||||
stat:
|
stat:
|
||||||
path: '/opt/Mullvad VPN'
|
path: '/opt/Mullvad VPN'
|
||||||
register: mullvad_installed
|
register: mullvad_installed
|
||||||
|
|
||||||
@@ -84,7 +84,7 @@
|
|||||||
- name: Workstation | Software | VPN | Mullvad | PATH | Install
|
- name: Workstation | Software | VPN | Mullvad | PATH | Install
|
||||||
shell: "{{ item }}"
|
shell: "{{ item }}"
|
||||||
loop:
|
loop:
|
||||||
- rm {{ mullvad_exe_new }}
|
- rm {{ mullvad_exe_new }} || echo "File does not exist."
|
||||||
- echo "#!/usr/bin/env sh" > {{ mullvad_exe_new }}
|
- echo "#!/usr/bin/env sh" > {{ mullvad_exe_new }}
|
||||||
- echo "cd {{ mullvad_exe_dir }}" >> {{ mullvad_exe_new }}
|
- echo "cd {{ mullvad_exe_dir }}" >> {{ mullvad_exe_new }}
|
||||||
- echo "./{{ mullvad_exe }}" >> {{ mullvad_exe_new }}
|
- echo "./{{ mullvad_exe }}" >> {{ mullvad_exe_new }}
|
||||||
|
|||||||
Reference in New Issue
Block a user