# shutdown a host # https://docs.ansible.com/ansible/latest/collections/community/general/shutdown_module.html # # had to run the command like so: # # ansible-playbook 10-playboot-shutdown.yml --ask-become-pass --- - name: "10 - Playing with Ansible - shutdown a host" hosts: all tasks: - name: shutdown a host community.general.shutdown: msg: "shutdown initiated by ansible" delay: 5 become: yes ...