homelab/roles/base/handlers/main.yml

7 lines
135 B
YAML

- name: Reboot host
reboot:
msg: "Reboot initiated by Ansible"
connect_timeout: 5
listen: reboot_host
when: allow_reboot