-tweaks to openvpn install

This commit is contained in:
Pi
2019-07-01 15:12:47 -04:00
parent 54950e0961
commit f86279f3cc

View File

@@ -48,6 +48,7 @@
name: openvpn
enabled: yes
tags: enable_openvpn
register: openvpn_enabled
- name: enable openvpn config
become: true
lineinfile:
@@ -56,4 +57,12 @@
regexp: '^#AUTOSTART="all"'
line: 'AUTOSTART="all"'
tags: enable_openvpn
- name: start openvpn
become: true
systemd:
daemon_reload: yes
name: openvpn
state: restarted
tags: enable_openvpn
when: openvpn_enabled