2020-03-05 07:06:21 +00:00
|
|
|
- name: Reboot host
|
|
|
|
reboot:
|
|
|
|
msg: "Reboot initiated by Ansible"
|
|
|
|
connect_timeout: 5
|
|
|
|
listen: reboot_host
|
2020-06-30 05:16:46 +00:00
|
|
|
when: allow_reboot
|
2021-05-07 06:38:49 +00:00
|
|
|
|
|
|
|
- name: Restart WireGuard
|
|
|
|
service:
|
|
|
|
name: wg-quick@wg0
|
|
|
|
state: restarted
|
|
|
|
listen: restart_wireguard
|
2022-05-28 06:31:41 +00:00
|
|
|
|
|
|
|
- name: Restart Fail2ban
|
|
|
|
service:
|
|
|
|
name: fail2ban
|
|
|
|
state: restarted
|
|
|
|
listen: restart_fail2ban
|