- hosts: all become: true become_user: root become_method: sudo tasks: - name: Reboot ansible.builtin.reboot: