From c20166a69d86d002c3e179feeabe72b5ac5e3a96 Mon Sep 17 00:00:00 2001 From: Khue Doan Date: Wed, 19 May 2021 22:27:48 +0700 Subject: [PATCH] Make sure the machines are shut down --- metal/shutdown.yml | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/metal/shutdown.yml b/metal/shutdown.yml index c37181e3..e1d076b9 100644 --- a/metal/shutdown.yml +++ b/metal/shutdown.yml @@ -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