--- - hosts: all tasks: - name: shutdown machines become: yes command: /sbin/shutdown -h now ignore_errors: yes