1
0
Fork 0
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:
A Holt 2018-08-13 21:11:57 -04:00 committed by GitHub
parent 7a4a9137b0
commit 547ebad4a6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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