1
0
Fork 0
mirror of https://github.com/iiab/iiab.git synced 2025-02-14 20:22:08 +00:00

Update main.yml

This commit is contained in:
A Holt 2018-09-02 17:31:11 -04:00 committed by GitHub
parent f810b9cde6
commit 370267b1d9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -154,9 +154,10 @@
# /etc/iiab/openvpn_handle to xscenet.net -- and
# "systemctl restart openvpn@xscenet" was failing completely (no matter how
# many times it was run) to transmit /etc/iiab/openvpn_handle to xscenet.net
- name: Enable & (Re)Start openvpn@xscenet tunnel
- name: Enable & (Re)Start PARENT service openvpn (it starts CHILD service openvpn@xscenet & tunnel)
systemd:
name: openvpn@xscenet.service
name: openvpn
daemon_reload: yes
enabled: yes
state: restarted
when: openvpn_enabled
@ -176,9 +177,9 @@
state: absent
when: not openvpn_enabled or not openvpn_cron_enabled
- name: Disable & Stop openvpn@xscenet tunnel
- name: Disable & Stop PARENT service openvpn (it stops CHILD service openvpn@xscenet & tunnel)
systemd:
name: openvpn@xscenet.service
name: openvpn
enabled: no
state: stopped
when: not openvpn_enabled