Don't use meta:end_play after growvols check
According to the documentation, meta: end_play will apply to all hosts, which is fine if every host is deploying the same image. However if there is a mixture of overcloud-full and overcloud-hardened-uefi-full the playbook won't run correctly on some hosts. This change moves to a conditional block to run as expected on each host. [1] https://docs.ansible.com/ansible/latest/collections/ansible/builtin/meta_module.html Change-Id: Iccda95cde0e309af00ce6b918ab1acab68e548dd
This commit is contained in:
parent
d2323bb1e6
commit
1678c3395b
@ -69,19 +69,18 @@
|
||||
become: true
|
||||
register: find_growvols
|
||||
|
||||
- name: Stopping playbook when no growvols utility is found
|
||||
meta: end_play
|
||||
when: find_growvols.rc != 0
|
||||
- name: Run growvols block
|
||||
when: find_growvols.rc == 0
|
||||
block:
|
||||
- name: Setting growvols path
|
||||
set_fact:
|
||||
growvols_path: "{{ find_growvols.stdout_lines[0] }}"
|
||||
|
||||
- name: Setting growvols path
|
||||
set_fact:
|
||||
growvols_path: "{{ find_growvols.stdout_lines[0] }}"
|
||||
- name: "Running {{ growvols_path }} {{growvols_args}}"
|
||||
shell: "{{ growvols_path }} --yes {{growvols_args}}"
|
||||
become: true
|
||||
register: run_growvols
|
||||
|
||||
- name: "Running {{ growvols_path }} {{growvols_args}}"
|
||||
shell: "{{ growvols_path }} --yes {{growvols_args}}"
|
||||
become: true
|
||||
register: run_growvols
|
||||
|
||||
- name: Output of growvols stdout
|
||||
debug:
|
||||
var: run_growvols.stdout
|
||||
- name: Output of growvols stdout
|
||||
debug:
|
||||
var: run_growvols.stdout
|
||||
|
Loading…
Reference in New Issue
Block a user