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