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:
Kevin Carter 2020-02-05 17:29:03 -06:00 committed by Kevin Carter (cloudnull)
parent 5cc278979c
commit 9d74a67932
1 changed files with 1 additions and 5 deletions

View File

@ -37,11 +37,7 @@
register: stack_data_cmd
changed_when: false
- name: Read stack data
set_fact:
stack_data: "{{ stack_data_cmd.stdout | from_yaml }}"
- name: Create horizon url temp file
copy:
content: "{{ stack_data.output_value.HorizonPublic.uri }}"
content: "{{ (stack_data_cmd.stdout | from_yaml).output_value.HorizonPublic.uri }}"
dest: "{{ horizon_url_output_file }}"