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:
parent
f810b9cde6
commit
370267b1d9
1 changed files with 5 additions and 4 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue