diff options
Diffstat (limited to 'roles/install_openvpn')
| -rw-r--r-- | roles/install_openvpn/handlers/main.yml | 5 | ||||
| -rw-r--r-- | roles/install_openvpn/tasks/main.yml | 6 | 
2 files changed, 11 insertions, 0 deletions
diff --git a/roles/install_openvpn/handlers/main.yml b/roles/install_openvpn/handlers/main.yml new file mode 100644 index 0000000..da582dc --- /dev/null +++ b/roles/install_openvpn/handlers/main.yml @@ -0,0 +1,5 @@ +--- +- name: restart openvpn +  systemd: +      name: openvpn-client@mullvad.service +      state: restarted diff --git a/roles/install_openvpn/tasks/main.yml b/roles/install_openvpn/tasks/main.yml index 9d35547..2f5d7fb 100644 --- a/roles/install_openvpn/tasks/main.yml +++ b/roles/install_openvpn/tasks/main.yml @@ -8,32 +8,38 @@    copy:        src: ca.crt        dest: /etc/openvpn/client/ca.crt +  notify: restart openvpn  - name: install crl.pem    copy:        src: crl.pem        dest: /etc/openvpn/client/crl.pem +  notify: restart openvpn  - name: install mullvad-up.sh    copy:        src: mullvad-up.sh        dest: /etc/openvpn/client/mullvad-up.sh        mode: 0744 +  notify: restart openvpn  - name: install mullvad.conf    template:        src: mullvad.conf.j2        dest: /etc/openvpn/client/mullvad.conf +  notify: restart openvpn  - name: install mullvad.key    template:        src: mullvad.key.j2        dest: /etc/openvpn/client/mullvad.key +  notify: restart openvpn  - name: install mullvad.crt    template:        src: mullvad.crt.j2        dest: /etc/openvpn/client/mullvad.crt +  notify: restart openvpn  - name: create sysetmd openvpn folder    file:  | 
