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

This commit is contained in:
Danny Bessems 2022-04-20 10:31:27 +02:00
parent 4509756e0f
commit 923c8b9905
1 changed files with 7 additions and 0 deletions

View File

@ -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 }}"