mirror of
https://github.com/iiab/iiab.git
synced 2025-02-13 03:32:12 +00:00
Update main.yml
This commit is contained in:
parent
7a4a9137b0
commit
547ebad4a6
1 changed files with 5 additions and 2 deletions
|
@ -79,6 +79,11 @@
|
|||
register: stat
|
||||
|
||||
|
||||
# AUG 2018: Unexplainably, this stanza had to be placed underneath ANY
|
||||
# "lineinfile: ... state: absent" stanza to make openvpn_handle propagate
|
||||
# properly to xscenet.net (monitoring ncat's erroneous handle parameter by
|
||||
# observing "systemctl status openvpn@xscenet" helped trace the [primary?]
|
||||
# bug to roles/openvpn/templates/announcer [far better now if not perfect?])
|
||||
- name: Enable & (Re)Start openvpn@xscenet tunnel
|
||||
systemd:
|
||||
name: openvpn@xscenet.service
|
||||
|
@ -99,7 +104,6 @@
|
|||
# shell: systemctl start openvpn@xscenet.service
|
||||
# when: openvpn_enabled and not stat.exists is defined and not installing
|
||||
|
||||
|
||||
- name: Enable hourly cron job for OpenVPN
|
||||
lineinfile:
|
||||
dest: /etc/crontab
|
||||
|
@ -114,7 +118,6 @@
|
|||
state: absent
|
||||
when: not openvpn_enabled or not openvpn_cron_enabled
|
||||
|
||||
|
||||
- name: Disable & Stop openvpn@xscenet tunnel
|
||||
systemd:
|
||||
name: openvpn@xscenet.service
|
||||
|
|
Loading…
Reference in a new issue