2020-03-05 07:06:21 +00:00
|
|
|
- name: Reboot host
|
2023-04-26 06:26:50 +00:00
|
|
|
ansible.builtin.reboot:
|
2020-03-05 07:06:21 +00:00
|
|
|
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
|
|
|
|
2023-10-21 01:30:25 +00:00
|
|
|
- name: Reconfigure locales
|
|
|
|
ansible.builtin.command: dpkg-reconfigure -f noninteractive locales
|
|
|
|
listen: reconfigure_locales
|
|
|
|
|
2021-05-07 06:38:49 +00:00
|
|
|
- name: Restart WireGuard
|
2023-04-26 06:26:50 +00:00
|
|
|
ansible.builtin.service:
|
2021-05-07 06:38:49 +00:00
|
|
|
name: wg-quick@wg0
|
|
|
|
state: restarted
|
|
|
|
listen: restart_wireguard
|
2022-05-28 06:31:41 +00:00
|
|
|
|
|
|
|
- name: Restart Fail2ban
|
2023-04-26 06:26:50 +00:00
|
|
|
ansible.builtin.service:
|
2022-05-28 06:31:41 +00:00
|
|
|
name: fail2ban
|
|
|
|
state: restarted
|
|
|
|
listen: restart_fail2ban
|
2023-04-26 06:26:50 +00:00
|
|
|
|
|
|
|
- name: Restart ddclient
|
|
|
|
ansible.builtin.service:
|
|
|
|
name: ddclient
|
|
|
|
state: restarted
|
|
|
|
listen: restart_ddclient
|
2023-06-07 06:12:17 +00:00
|
|
|
|
|
|
|
- name: Restart Samba
|
|
|
|
ansible.builtin.service:
|
|
|
|
name: smbd
|
|
|
|
state: restarted
|
2023-10-20 19:41:44 +00:00
|
|
|
listen: restart_samba
|