--- - hosts: all become_user: root become: yes tasks: - name: reboot server reboot: reboot_timeout: 600