Update tasks for efficiency
This change removes the set fact task and leverages ansible's native json parsing from stdout. This will speed up the ansible task execution. Change-Id: I4d43192d75e68eb83c1522b328d553c70ca481eb Signed-off-by: Kevin Carter <kecarter@redhat.com>
This commit is contained in:
parent
5cc278979c
commit
9d74a67932
|
@ -37,11 +37,7 @@
|
||||||
register: stack_data_cmd
|
register: stack_data_cmd
|
||||||
changed_when: false
|
changed_when: false
|
||||||
|
|
||||||
- name: Read stack data
|
|
||||||
set_fact:
|
|
||||||
stack_data: "{{ stack_data_cmd.stdout | from_yaml }}"
|
|
||||||
|
|
||||||
- name: Create horizon url temp file
|
- name: Create horizon url temp file
|
||||||
copy:
|
copy:
|
||||||
content: "{{ stack_data.output_value.HorizonPublic.uri }}"
|
content: "{{ (stack_data_cmd.stdout | from_yaml).output_value.HorizonPublic.uri }}"
|
||||||
dest: "{{ horizon_url_output_file }}"
|
dest: "{{ horizon_url_output_file }}"
|
||||||
|
|
Loading…
Reference in New Issue