2020-03-05 02:06:21 -05:00
|
|
|
- name: Reboot host
|
2023-04-26 02:26:50 -04:00
|
|
|
ansible.builtin.reboot:
|
2020-03-05 02:06:21 -05:00
|
|
|
msg: "Reboot initiated by Ansible"
|
|
|
|
connect_timeout: 5
|
|
|
|
listen: reboot_host
|
2020-06-30 01:16:46 -04:00
|
|
|
when: allow_reboot
|
2021-05-07 02:38:49 -04:00
|
|
|
|
2023-10-20 21:30:25 -04:00
|
|
|
- name: Reconfigure locales
|
|
|
|
ansible.builtin.command: dpkg-reconfigure -f noninteractive locales
|
|
|
|
listen: reconfigure_locales
|
|
|
|
|
2021-05-07 02:38:49 -04:00
|
|
|
- name: Restart WireGuard
|
2023-04-26 02:26:50 -04:00
|
|
|
ansible.builtin.service:
|
2021-05-07 02:38:49 -04:00
|
|
|
name: wg-quick@wg0
|
|
|
|
state: restarted
|
|
|
|
listen: restart_wireguard
|
2022-05-28 02:31:41 -04:00
|
|
|
|
|
|
|
- name: Restart Fail2ban
|
2023-04-26 02:26:50 -04:00
|
|
|
ansible.builtin.service:
|
2022-05-28 02:31:41 -04:00
|
|
|
name: fail2ban
|
|
|
|
state: restarted
|
|
|
|
listen: restart_fail2ban
|
2023-04-26 02:26:50 -04:00
|
|
|
|
|
|
|
- name: Restart ddclient
|
|
|
|
ansible.builtin.service:
|
|
|
|
name: ddclient
|
|
|
|
state: restarted
|
|
|
|
listen: restart_ddclient
|
2023-06-07 02:12:17 -04:00
|
|
|
|
|
|
|
- name: Restart Samba
|
|
|
|
ansible.builtin.service:
|
|
|
|
name: smbd
|
|
|
|
state: restarted
|
2023-10-20 15:41:44 -04:00
|
|
|
listen: restart_samba
|