[MOLECULE] Download helm-push unconditionally in 'prepare-helm' role
[oom/offline-installer.git] / ansible / test / roles / prepare-helm / tasks / main.yml
1 ---
2 - name: "Ensure {{ app_data_path }}/downloads directory exists"
3   file:
4     path: "{{ app_data_path }}/downloads"
5     recurse: true
6     state: directory
7
8 - name: "Download helm-{{ helm_version }}"
9   get_url:
10     url: "https://get.helm.sh/helm-{{ helm_version }}-linux-amd64.tar.gz"
11     dest: "{{ app_data_path }}/downloads"
12
13 - name: Download helm-push plugin
14   command: "curl --connect-timeout 10 -L https://github.com/chartmuseum/helm-push/releases/download/v{{ helm3_push_version }}/helm-push_{{ helm3_push_version }}_linux_amd64.tar.gz -o {{ app_data_path }}/downloads/helm-push_{{ helm3_push_version }}_linux_amd64.tar.gz"
15   register: result
16   retries: 10
17   delay: 1
18   until: not result.failed
19   args:
20     warn: false