summaryrefslogtreecommitdiffstats
path: root/ansible/test/roles/prepare-helm/tasks/main.yml
blob: aa01e28157145cbf43244aeb8753c971ccab2f3b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
---
- name: "Ensure {{ app_data_path }}/downloads directory exists"
  file:
    path: "{{ app_data_path }}/downloads"
    recurse: true
    state: directory

- name: "Download and unarchive helm-{{ helm_version }}"
  unarchive:
    src: "https://get.helm.sh/helm-v{{ helm_version }}-linux-amd64.tar.gz"
    dest: "/tmp"
    remote_src: true

- name: "Copy helm binary"
  copy:
    src: /tmp/linux-amd64/helm
    dest: "{{ app_data_path }}/downloads/helm"
    remote_src: true