Skip to content

Commit 07a0815

Browse files
committed
Wait for nodes to be reachable
Sometimes baremetal nodes are not reachable after they're provisioned. As bootstrap is always the first play run, this would allow us wait for sometime for the connections to be ready. Signed-off-by: rabi <[email protected]>
1 parent 2c57948 commit 07a0815

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

playbooks/bootstrap.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,12 @@
11
---
2+
- name: Check remote connections
3+
hosts: "{{ edpm_override_hosts | default('all', true) }}"
4+
gather_facts: false
5+
tasks:
6+
- name: Wait for connection
7+
ansible.builtin.wait_for_connection:
8+
delay: "{{ edpm_wait_for_connection_delay | default(10) }}"
9+
timeout: "{{ edpm_wait_for_connection_timeout | default(600) }}"
210

311
- name: Bootstrap node
412
hosts: "{{ edpm_override_hosts | default('all', true) }}"

0 commit comments

Comments
 (0)