Files
kubernetes/ansible/ansible-rpi-cluster/playbooks/shutdown.yml
2025-11-23 18:58:51 +01:00

16 lines
365 B
YAML
Executable File

---
- name: Playbook for shutting down the RPis
hosts: picluster
gather_facts: no
tasks:
- name: 'Shutdown RPi'
shell: shutdown -h now
async: 0
poll: 0
ignore_errors: true
become: true
- name: "Wait for shutdown to complete"
local_action: wait_for host={{ ansible_host }} port=22 state=stopped
become: false