Use tempfile for get_url task set-service-type-data-fact
We don't actually collect facts on executor for security reasons, however we can use the result.src from get_url to get the file info. Change-Id: I867c013ab7e3883c8b9cdb0d7b06fec854ed3d5a Signed-off-by: Paul Belanger <pabelanger@redhat.com>
This commit is contained in:
parent
fd9e701b7f
commit
b41fd3f209
@ -1,12 +1,13 @@
|
||||
- name: Get service-types data file
|
||||
get_url:
|
||||
url: https://service-types.openstack.org/service-types.json
|
||||
dest: "{{ ansible_user_dir }}/service-types.json"
|
||||
dest: /tmp
|
||||
register: result
|
||||
|
||||
- name: Collect service type data for project
|
||||
get_service_type_data:
|
||||
project_name: "{{ zuul.project.short_name }}"
|
||||
service_types_file: "{{ ansible_user_dir }}/service-types.json"
|
||||
service_types_file: "{{ result.src }}"
|
||||
register: service_type_data
|
||||
|
||||
- name: Set service_type_data as a fact
|
||||
|
Loading…
x
Reference in New Issue
Block a user