--- - name: Do something, reboot, do something else hosts: all become: false gather_facts: false tasks: - name: Do something ansible.builtin.debug: msg: "hello. im doing. something. perhaps." - name: I am. To be. Rebooted... ansible.builtin.reboot: msg : "Goodbye. Cruel, world." test_command : /bin/true - name: Do something else ansible.builtin.debug: msg: "hello. im doing... something... ELSE!" ...