diff --git a/roles/protonvpn/handlers/main.yml b/roles/protonvpn/handlers/main.yml new file mode 100644 index 0000000..6b46cc7 --- /dev/null +++ b/roles/protonvpn/handlers/main.yml @@ -0,0 +1,5 @@ +--- +- name: Enable protonvpn service + systemd: + name: openvpn-client@fr.protonvpn.com.udp + enabled: true diff --git a/roles/protonvpn/tasks/main.yml b/roles/protonvpn/tasks/main.yml index 501ffc6..5716374 100644 --- a/roles/protonvpn/tasks/main.yml +++ b/roles/protonvpn/tasks/main.yml @@ -36,8 +36,4 @@ owner: root group: root remote_src: yes - -- name: Enable protonvpn service - systemd: - name: openvpn-client@fr.protonvpn.com.udp - enabled: true + notify: Enable protonvpn service