--- - name: Reboot machine hosts: "{{ Daily_Reboot_Hosts }}" become: yes become_user: root tasks: - name: Reboot machine command: /sbin/reboot now async: 1 poll: 0 - name: Pause for 1 minutes ansible.builtin.pause: minutes: 1 - name: Wait for systems to become reachable wait_for_connection: