diff options
author | Niklas Yann Wettengel <niyawe@niyawe.de> | 2017-03-18 15:13:27 +0100 |
---|---|---|
committer | Niklas Yann Wettengel <niyawe@niyawe.de> | 2017-03-18 15:13:27 +0100 |
commit | 0fbee3f86b0f92f55193556945b82d51cde6d5a7 (patch) | |
tree | 2c276aa4f2ecec0bc179340bc501f48173c81453 /roles/install_openvpn/tasks | |
parent | eb9f51f61817043d5fb3609fad922c48f84b887d (diff) |
updated setup_fastd.yml
added features:
- configure_sysctl
- install_openvpn
Diffstat (limited to 'roles/install_openvpn/tasks')
-rw-r--r-- | roles/install_openvpn/tasks/main.yml | 53 |
1 files changed, 53 insertions, 0 deletions
diff --git a/roles/install_openvpn/tasks/main.yml b/roles/install_openvpn/tasks/main.yml new file mode 100644 index 0000000..9d35547 --- /dev/null +++ b/roles/install_openvpn/tasks/main.yml @@ -0,0 +1,53 @@ +--- +- name: install openvpn + pacman: + name: openvpn + state: present + +- name: install ca.crt + copy: + src: ca.crt + dest: /etc/openvpn/client/ca.crt + +- name: install crl.pem + copy: + src: crl.pem + dest: /etc/openvpn/client/crl.pem + +- name: install mullvad-up.sh + copy: + src: mullvad-up.sh + dest: /etc/openvpn/client/mullvad-up.sh + mode: 0744 + +- name: install mullvad.conf + template: + src: mullvad.conf.j2 + dest: /etc/openvpn/client/mullvad.conf + +- name: install mullvad.key + template: + src: mullvad.key.j2 + dest: /etc/openvpn/client/mullvad.key + +- name: install mullvad.crt + template: + src: mullvad.crt.j2 + dest: /etc/openvpn/client/mullvad.crt + +- name: create sysetmd openvpn folder + file: + path: /etc/systemd/system/openvpn-client@mullvad.service.d + state: directory + +- name: always restart openvpn + copy: + src: override.conf + dest: /etc/systemd/system/openvpn-client@mullvad.service.d/override.conf + +- name: start and enable openvpn-client@mullvad.service + systemd: + name: openvpn-client@mullvad.service + daemon_reload: yes + enabled: yes + state: started |