This commit is contained in:
2026-04-26 10:30:59 +03:00
parent 567a0268ae
commit 1d19a10f00

View File

@@ -47,10 +47,11 @@
nb_ip_err: "{{ _fail_line }}"
changed_when: false
- name: "Wrapper | Abort if nb_ip not available"
fail:
msg: "Wrapper preflight did not produce nb_ip. FAIL line: {{ nb_ip_err | default('') }}"
- name: "Wrapper | Continue with inventory IP if nb_ip not available"
debug:
msg: "Wrapper preflight did not produce nb_ip, keeping current inventory ansible_host. FAIL line: {{ nb_ip_err | default('') }}"
when: not nb_ip_ok
changed_when: false
- name: "Wrapper | Debug before ansible_host override"
debug:
@@ -64,6 +65,7 @@
- name: "Wrapper | Update ansible_host to nb_ip"
set_fact:
ansible_host: "{{ nb_ip }}"
when: nb_ip_ok
changed_when: false
- name: "Wrapper | Debug after ansible_host override"
@@ -76,6 +78,7 @@
- name: "Wrapper | Reset connection after ansible_host change"
meta: reset_connection
when: nb_ip_ok
- name: "Wrapper | Debug after reset_connection"
debug: