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>
changes/56/706156/2
Kevin Carter 3 years ago committed by Kevin Carter (cloudnull)
parent 5cc278979c
commit 9d74a67932
  1. 6
      tripleo_ansible/playbooks/cli-undercloud-get-horizon-url.yaml

@ -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 }}"

Loading…
Cancel
Save