mirror of
https://github.com/khuedoan/homelab.git
synced 2025-01-05 13:08:52 +07:00
Make sure the machines are shut down
This commit is contained in:
parent
b391ee5be3
commit
c20166a69d
@ -6,9 +6,6 @@
|
||||
community.general.shutdown:
|
||||
delay: 0
|
||||
ignore_unreachable: yes
|
||||
|
||||
# TODO (optimize) Find a way to make sure the machines are shut down
|
||||
- name: Wait for the machine to shutdown
|
||||
wait_for:
|
||||
timeout: 30
|
||||
shell: "until ! ping -c 1 {{ ansible_host }}; do sleep 1; done"
|
||||
delegate_to: localhost
|
||||
|
Loading…
Reference in New Issue
Block a user