--- - name: Reboot machine hosts: "{{ Daily_Reboot_Hosts }}" become: true tasks: - name: Reboot machine reboot: when: True become: true args: - "--no-wall"