mirror of
https://github.com/iiab/iiab.git
synced 2025-03-09 15:40:17 +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
|
# /etc/iiab/openvpn_handle to xscenet.net -- and
|
||||||
# "systemctl restart openvpn@xscenet" was failing completely (no matter how
|
# "systemctl restart openvpn@xscenet" was failing completely (no matter how
|
||||||
# many times it was run) to transmit /etc/iiab/openvpn_handle to xscenet.net
|
# 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:
|
systemd:
|
||||||
name: openvpn@xscenet.service
|
name: openvpn
|
||||||
|
daemon_reload: yes
|
||||||
enabled: yes
|
enabled: yes
|
||||||
state: restarted
|
state: restarted
|
||||||
when: openvpn_enabled
|
when: openvpn_enabled
|
||||||
|
@ -176,9 +177,9 @@
|
||||||
state: absent
|
state: absent
|
||||||
when: not openvpn_enabled or not openvpn_cron_enabled
|
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:
|
systemd:
|
||||||
name: openvpn@xscenet.service
|
name: openvpn
|
||||||
enabled: no
|
enabled: no
|
||||||
state: stopped
|
state: stopped
|
||||||
when: not openvpn_enabled
|
when: not openvpn_enabled
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue