homelab/roles/base/handlers/main.yml

31 lines
627 B
YAML
Raw Normal View History

- name: Reboot host
ansible.builtin.reboot:
msg: "Reboot initiated by Ansible"
connect_timeout: 5
listen: reboot_host
when: allow_reboot
- name: Restart WireGuard
ansible.builtin.service:
name: wg-quick@wg0
state: restarted
listen: restart_wireguard
2022-05-28 06:31:41 +00:00
- name: Restart Fail2ban
ansible.builtin.service:
2022-05-28 06:31:41 +00:00
name: fail2ban
state: restarted
listen: restart_fail2ban
- name: Restart ddclient
ansible.builtin.service:
name: ddclient
state: restarted
listen: restart_ddclient
- name: Restart Samba
ansible.builtin.service:
name: smbd
state: restarted
2023-10-20 17:56:55 +00:00
listen: restart_samba