File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change 20
20
- name : Fetch dependencies.json for capi-helm-charts release
21
21
ansible.builtin.uri :
22
22
url : https://raw.githubusercontent.com/azimuth-cloud/capi-helm-charts/{{ capi_helm_chart_release_data.json.tag_name }}/dependencies.json
23
+ return_content : true
23
24
register : dependencies_response
24
25
25
26
- name : Ensure wget packages is installed
29
30
state : present
30
31
31
32
- name : Fetch manifest.json for capi-helm-charts images # noqa command-instead-of-module
33
+ vars :
34
+ dependencies : " {{ dependencies_response.content }}"
32
35
# ansible.builtin.uri:
33
36
# url: https://raw.githubusercontent.com/azimuth-cloud/azimuth-images/{{ dependencies_response.json['azimuth-images'] }}/manifest.json
34
37
# Above URL returns 404 even though similar URL for capi-helm-charts repo works fine
35
38
# Not sure why but fall back to wget + JSON parsing for now.
36
39
ansible.builtin.command : >-
37
- wget -O - https://github.com/azimuth-cloud/azimuth-images/releases/download/{{ dependencies_response.json ['azimuth-images'] }}/manifest.json
40
+ wget -O - https://github.com/azimuth-cloud/azimuth-images/releases/download/{{ dependencies ['azimuth-images'] }}/manifest.json
38
41
register : manifest_response
39
42
changed_when : false
40
43
You can’t perform that action at this time.
0 commit comments