diff --git a/tasks/workstation/linux/software/vpn.yml b/tasks/workstation/linux/software/vpn.yml index e9b55df..c9a4e68 100644 --- a/tasks/workstation/linux/software/vpn.yml +++ b/tasks/workstation/linux/software/vpn.yml @@ -90,10 +90,16 @@ - echo "./{{ mullvad_exe }}" >> {{ mullvad_exe_new }} - chmod +x {{ mullvad_exe_new }} -- name: Workstation | Software | VPN | Mullvad | Enable (runit) +- name: Workstation | Software | VPN | Mullvad | runit | Enable Service (mullvad-daemon) file: src: "{{ runit_script_dir }}/mullvad-daemon" - dest: "{{ runit_service_dir }}/mullvad" + dest: "{{ runit_service_dir }}/mullvad-daemon" state: link force: true when: ansible_service_mgr == "runit" + +- name: Workstation | Software | VPN | Mullvad | runit | Remove Old Service (mullvad) + file: + path: "{{ runit_service_dir }}/mullvad" + state: absent + when: ansible_service_mgr == "runit"