Wait for new VM's to be fully reachable
Some checks reported errors
continuous-integration/drone/push Build encountered an error

This commit is contained in:
Danny Bessems 2022-04-20 10:31:27 +02:00
parent 4509756e0f
commit 923c8b9905

View File

@ -70,6 +70,13 @@
groups: k3s_ha groups: k3s_ha
with_items: "{{ nodes }}" 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 - name: Scan public keys
ansible.builtin.shell: ansible.builtin.shell:
cmd: "ssh-keyscan -t rsa {{ item.ip }}" cmd: "ssh-keyscan -t rsa {{ item.ip }}"