From 00aacf90c680d2765c58574033ccddd636e9baf4 Mon Sep 17 00:00:00 2001 From: friedrich goerz Date: Mon, 13 Dec 2021 13:11:04 +0100 Subject: [PATCH] DEV-280: added wait_for task to to fix broken smardigo-step 'create-server' --- roles/hcloud/tasks/main.yml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/roles/hcloud/tasks/main.yml b/roles/hcloud/tasks/main.yml index 1e733eb..61a6eaa 100644 --- a/roles/hcloud/tasks/main.yml +++ b/roles/hcloud/tasks/main.yml @@ -89,3 +89,12 @@ record_name: "{{ inventory_hostname }}" tags: - update_dns + +- name: "Wait for {{ inventory_hostname }}" + delegate_to: localhost + wait_for: + timeout: 120 + port: 22 + host: '{{ stage_server_ip }}' + delay: 10 + search_regex: OpenSSH