You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
54 lines
1.2 KiB
YAML
54 lines
1.2 KiB
YAML
---
|
|
- 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
|