vpn, change symlink to a script.

This commit is contained in:
2026-08-11 15:42:17 -07:00
parent 9555012353
commit 0a90c5cca1
+20 -8
View File
@@ -36,6 +36,7 @@
when: ansible_distribution in ("Debian", "Ubuntu", "Arch", "Artix")
## Specific Distros ##
- name: Workstation | Software | VPN | Mullvad | Devuan (runit)
block:
@@ -69,18 +70,29 @@
when: ansible_pkg_mgr == "apt"
and ansible_service_mgr != "systemd"
## Link & Enable ##
- name: Workstation | Software | VPN | Mullvad | Symlink GUI
file:
src: "/opt/Mullvad VPN/mullvad-vpn"
dest: "{{ global_bin }}/mullvad-vpn"
state: link
force: true
- name: Workstation | Software | VPN | Mullvad | PATH | Facts 01
set_fact:
mullvad_exe: 'mullvad-vpn'
mullvad_exe_dir: '/opt/Mullvad\ VPN'
- name: Workstation | Software | VPN | Mullvad | PATH | Facts 02
set_fact:
mullvad_exe_new: "{{ global_bin }}/{{ mullvad_exe }}"
- name: Workstation | Software | VPN | Mullvad | PATH | Install
shell: "{{ item }}"
loop:
- echo "#!/usr/bin/env sh" > {{ mullvad_exe_new }}
- echo "cd {{ mullvad_exe_dir }}" >> {{ mullvad_exe_new }}
- echo "./{{ mullvad_exe }}" >> {{ mullvad_exe_new }}
- chmod +x {{ mullvad_exe_new }}
- name: Workstation | Software | VPN | Mullvad | Enable (runit)
file:
src: "/{{ runit_script_dir }}/mullvad-daemon"
dest: "/{{ runit_service_dir }}/mullvad"
src: "{{ runit_script_dir }}/mullvad-daemon"
dest: "{{ runit_service_dir }}/mullvad"
state: link
force: true
when: ansible_service_mgr == "runit"