Skip to content

Commit fc01794

Browse files
committed
Fix helm chart release version download
1 parent 72daec2 commit fc01794

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

ansible/generate-magnum-capi-templates.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
- name: Fetch dependencies.json for capi-helm-charts release
2121
ansible.builtin.uri:
2222
url: https://raw.githubusercontent.com/azimuth-cloud/capi-helm-charts/{{ capi_helm_chart_release_data.json.tag_name }}/dependencies.json
23+
return_content: true
2324
register: dependencies_response
2425

2526
- name: Ensure wget packages is installed
@@ -29,12 +30,14 @@
2930
state: present
3031

3132
- name: Fetch manifest.json for capi-helm-charts images # noqa command-instead-of-module
33+
vars:
34+
dependencies: "{{ dependencies_response.content }}"
3235
# ansible.builtin.uri:
3336
# url: https://raw.githubusercontent.com/azimuth-cloud/azimuth-images/{{ dependencies_response.json['azimuth-images'] }}/manifest.json
3437
# Above URL returns 404 even though similar URL for capi-helm-charts repo works fine
3538
# Not sure why but fall back to wget + JSON parsing for now.
3639
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
3841
register: manifest_response
3942
changed_when: false
4043

0 commit comments

Comments
 (0)