--- - hosts: all,!ansible-hosts tasks: - name: reboot become: yes reboot: