---
- name: reboot machine
hosts: "{{ my_hosts | d([]) }}"
become: yes
tasks:
ansible.builtin.reboot:
reboot_timeout: 3600