From 66987a59ce0bc39c4190e848ad496a15a4ea45d6 Mon Sep 17 00:00:00 2001 From: Hyperling Date: Wed, 12 Aug 2026 16:29:57 -0700 Subject: [PATCH] vpn, allow the script removal to fail since it may not exist yet. --- tasks/workstation/linux/software/vpn.yml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/tasks/workstation/linux/software/vpn.yml b/tasks/workstation/linux/software/vpn.yml index a1efa0e..e9b55df 100644 --- a/tasks/workstation/linux/software/vpn.yml +++ b/tasks/workstation/linux/software/vpn.yml @@ -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 }}