0948
This commit is contained in:
@@ -52,14 +52,45 @@
|
||||
msg: "Wrapper preflight did not produce nb_ip. FAIL line: {{ nb_ip_err | default('') }}"
|
||||
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"
|
||||
set_fact:
|
||||
ansible_host: "{{ nb_ip }}"
|
||||
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"
|
||||
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
|
||||
vars:
|
||||
|
||||
@@ -53,15 +53,45 @@
|
||||
msg: "Wrapper preflight did not produce nb_ip. FAIL line: {{ nb_ip_err | default('') }}"
|
||||
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"
|
||||
set_fact:
|
||||
ansible_host: "{{ nb_ip }}"
|
||||
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"
|
||||
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
|
||||
vars:
|
||||
is_run_by: "scheduler"
|
||||
|
||||
Reference in New Issue
Block a user