fix: retry transient first boot ssh disconnects
Deploy Cluster / Terraform (push) Successful in 32s
Deploy Cluster / Ansible (push) Failing after 27m20s

This commit is contained in:
2026-05-03 05:47:33 +00:00
parent 7bd8df7aea
commit 69100bac44
+17
View File
@@ -21,6 +21,23 @@
- name: Gather facts after SSH is reachable - name: Gather facts after SSH is reachable
setup: setup:
register: initial_setup
ignore_errors: true
ignore_unreachable: true
- name: Clear transient SSH unreachable state after first fact gather
meta: clear_host_errors
when: initial_setup.unreachable | default(false)
- name: Wait for SSH after transient first-boot disconnect
wait_for_connection:
delay: 10
timeout: 300
when: initial_setup.unreachable | default(false) or initial_setup.failed | default(false)
- name: Gather facts after transient first-boot disconnect
setup:
when: initial_setup.unreachable | default(false) or initial_setup.failed | default(false)
roles: roles:
- common - common