From 03ef74fe0575f214e8bac17de445203823d2047a Mon Sep 17 00:00:00 2001 From: Khue Doan Date: Tue, 31 Aug 2021 02:10:26 +0700 Subject: [PATCH] Use generic Ansible wait for connection --- metal/roles/wake/tasks/main.yml | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/metal/roles/wake/tasks/main.yml b/metal/roles/wake/tasks/main.yml index ac3098d2..ebd8e736 100644 --- a/metal/roles/wake/tasks/main.yml +++ b/metal/roles/wake/tasks/main.yml @@ -4,9 +4,5 @@ delegate_to: localhost - name: Wait for the servers to comes up - wait_for: - host: '{{ ansible_host }}' - port: 22 - search_regex: OpenSSH + wait_for_connection: timeout: 600 - delegate_to: localhost