christianlempa-boilerplates/ansible/maintenance/maint-reboot.yaml

9 lines
164 B
YAML
Raw Normal View History

2023-05-25 13:48:38 +02:00
---
- name: reboot machine
hosts: "{{ my_hosts | d([]) }}"
2023-05-25 13:48:38 +02:00
become: yes
tasks:
- name: reboot machine
ansible.builtin.reboot:
reboot_timeout: 3600