From 69c6f665f715d334bc3919cb9055426839917dbc Mon Sep 17 00:00:00 2001 From: Khue Doan Date: Sun, 13 Jun 2021 20:25:46 +0700 Subject: [PATCH] Check port instead of Ansible connection because CoreOS doesn't have Python --- metal/roles/pxe-boot/tasks/wake.yml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/metal/roles/pxe-boot/tasks/wake.yml b/metal/roles/pxe-boot/tasks/wake.yml index ebd8e736..e9eaa8d7 100644 --- a/metal/roles/pxe-boot/tasks/wake.yml +++ b/metal/roles/pxe-boot/tasks/wake.yml @@ -4,5 +4,8 @@ delegate_to: localhost - name: Wait for the servers to comes up - wait_for_connection: - timeout: 600 + wait_for: + host: '{{ ansible_host }}' + port: 22 + search_regex: OpenSSH + connection: local