From 923c8b99054b16672a662f9410b6e8313ab1a915 Mon Sep 17 00:00:00 2001 From: djpbessems Date: Wed, 20 Apr 2022 10:31:27 +0200 Subject: [PATCH] Wait for new VM's to be fully reachable --- playbook.yml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/playbook.yml b/playbook.yml index 3656e4d..7d0f765 100644 --- a/playbook.yml +++ b/playbook.yml @@ -70,6 +70,13 @@ groups: k3s_ha with_items: "{{ nodes }}" + - name: Wait for systems to become reachable over SSH + ansible.builtin.wait_for: + host: "{{ item.ip }}" + port: 22 + timeout: 300 + with_items: "{{ nodes }}" + - name: Scan public keys ansible.builtin.shell: cmd: "ssh-keyscan -t rsa {{ item.ip }}"