Make sure the machines are shut down

This commit is contained in:
Khue Doan 2021-05-19 22:27:48 +07:00
parent b391ee5be3
commit c20166a69d

View File

@ -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