blob: 3067609cfeedefe0674b965391681d051a5643d3 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
---
- name: create TLS certificate and key
import_tasks: tls.yml
- name: generate openvpn config
template:
src: conf.j2
dest: "/etc/openvpn/client/{{ openvpn_zone.name }}.conf"
notify: restart openvpn-client
- name: make sure openvpn-client systemd unit is enabled and started
systemd:
name: "openvpn-client@{{ openvpn_zone.name }}"
state: started
enabled: yes
|