0948
This commit is contained in:
@@ -52,14 +52,45 @@
|
|||||||
msg: "Wrapper preflight did not produce nb_ip. FAIL line: {{ nb_ip_err | default('') }}"
|
msg: "Wrapper preflight did not produce nb_ip. FAIL line: {{ nb_ip_err | default('') }}"
|
||||||
when: not nb_ip_ok
|
when: not nb_ip_ok
|
||||||
|
|
||||||
|
- name: "Wrapper | Debug before ansible_host override"
|
||||||
|
debug:
|
||||||
|
msg:
|
||||||
|
- "inventory_hostname={{ inventory_hostname }}"
|
||||||
|
- "ansible_host(before)={{ ansible_host | default('UNSET') }}"
|
||||||
|
- "ansible_port={{ ansible_port | default('22') }}"
|
||||||
|
- "nb_ip={{ nb_ip | default('UNSET') }}"
|
||||||
|
changed_when: false
|
||||||
|
|
||||||
- name: "Wrapper | Update ansible_host to nb_ip"
|
- name: "Wrapper | Update ansible_host to nb_ip"
|
||||||
set_fact:
|
set_fact:
|
||||||
ansible_host: "{{ nb_ip }}"
|
ansible_host: "{{ nb_ip }}"
|
||||||
changed_when: false
|
changed_when: false
|
||||||
|
|
||||||
|
- name: "Wrapper | Debug after ansible_host override"
|
||||||
|
debug:
|
||||||
|
msg:
|
||||||
|
- "inventory_hostname={{ inventory_hostname }}"
|
||||||
|
- "ansible_host(after)={{ ansible_host | default('UNSET') }}"
|
||||||
|
- "ansible_port={{ ansible_port | default('22') }}"
|
||||||
|
changed_when: false
|
||||||
|
|
||||||
- name: "Wrapper | Reset connection after ansible_host change"
|
- name: "Wrapper | Reset connection after ansible_host change"
|
||||||
meta: reset_connection
|
meta: reset_connection
|
||||||
|
|
||||||
|
- name: "Wrapper | Debug after reset_connection"
|
||||||
|
debug:
|
||||||
|
msg:
|
||||||
|
- "inventory_hostname={{ inventory_hostname }}"
|
||||||
|
- "ansible_host(post_reset)={{ ansible_host | default('UNSET') }}"
|
||||||
|
- "ansible_port={{ ansible_port | default('22') }}"
|
||||||
|
changed_when: false
|
||||||
|
|
||||||
|
|
||||||
|
- name: "Wrapper | Pause 2s before next playbook"
|
||||||
|
pause:
|
||||||
|
seconds: 2
|
||||||
|
changed_when: false
|
||||||
|
|
||||||
|
|
||||||
- import_playbook: update-indoor6-stable.yml
|
- import_playbook: update-indoor6-stable.yml
|
||||||
vars:
|
vars:
|
||||||
|
|||||||
@@ -53,14 +53,44 @@
|
|||||||
msg: "Wrapper preflight did not produce nb_ip. FAIL line: {{ nb_ip_err | default('') }}"
|
msg: "Wrapper preflight did not produce nb_ip. FAIL line: {{ nb_ip_err | default('') }}"
|
||||||
when: not nb_ip_ok
|
when: not nb_ip_ok
|
||||||
|
|
||||||
|
- name: "Wrapper | Debug before ansible_host override"
|
||||||
|
debug:
|
||||||
|
msg:
|
||||||
|
- "inventory_hostname={{ inventory_hostname }}"
|
||||||
|
- "ansible_host(before)={{ ansible_host | default('UNSET') }}"
|
||||||
|
- "ansible_port={{ ansible_port | default('22') }}"
|
||||||
|
- "nb_ip={{ nb_ip | default('UNSET') }}"
|
||||||
|
changed_when: false
|
||||||
|
|
||||||
- name: "Wrapper | Update ansible_host to nb_ip"
|
- name: "Wrapper | Update ansible_host to nb_ip"
|
||||||
set_fact:
|
set_fact:
|
||||||
ansible_host: "{{ nb_ip }}"
|
ansible_host: "{{ nb_ip }}"
|
||||||
changed_when: false
|
changed_when: false
|
||||||
|
|
||||||
|
- name: "Wrapper | Debug after ansible_host override"
|
||||||
|
debug:
|
||||||
|
msg:
|
||||||
|
- "inventory_hostname={{ inventory_hostname }}"
|
||||||
|
- "ansible_host(after)={{ ansible_host | default('UNSET') }}"
|
||||||
|
- "ansible_port={{ ansible_port | default('22') }}"
|
||||||
|
changed_when: false
|
||||||
|
|
||||||
- name: "Wrapper | Reset connection after ansible_host change"
|
- name: "Wrapper | Reset connection after ansible_host change"
|
||||||
meta: reset_connection
|
meta: reset_connection
|
||||||
|
|
||||||
|
- name: "Wrapper | Debug after reset_connection"
|
||||||
|
debug:
|
||||||
|
msg:
|
||||||
|
- "inventory_hostname={{ inventory_hostname }}"
|
||||||
|
- "ansible_host(post_reset)={{ ansible_host | default('UNSET') }}"
|
||||||
|
- "ansible_port={{ ansible_port | default('22') }}"
|
||||||
|
changed_when: false
|
||||||
|
|
||||||
|
|
||||||
|
- name: "Wrapper | Pause 2s before next playbook"
|
||||||
|
pause:
|
||||||
|
seconds: 2
|
||||||
|
changed_when: false
|
||||||
|
|
||||||
- import_playbook: update-rebootin224.yml
|
- import_playbook: update-rebootin224.yml
|
||||||
vars:
|
vars:
|
||||||
|
|||||||
Reference in New Issue
Block a user