Install helm

main
Micke Nordin 12 months ago
parent 4a9724cfb1
commit d95be0de3b
Signed by: micke
GPG Key ID: 0DA0A7A5708FE257

@ -5,6 +5,7 @@
uid: "{{ lookup('env','USER') }}" uid: "{{ lookup('env','USER') }}"
gitops: git+ssh://git@gitops.sunet.se gitops: git+ssh://git@gitops.sunet.se
github: git+ssh://git@github.com/SUNET github: git+ssh://git@github.com/SUNET
helm_version: 3.13.3
platform: git+ssh://git@platform.sunet.se:22022/Drive platform: git+ssh://git@platform.sunet.se:22022/Drive
commands: commands:
- get_drive_customers - get_drive_customers
@ -71,3 +72,32 @@
src: ../templates/tsocks.conf.j2 src: ../templates/tsocks.conf.j2
dest: /etc/tsocks.conf dest: /etc/tsocks.conf
become: true become: true
- name: Have helm allready installed
stat:
path: /usr/local/bin/helm
register: have_helm
- name: Get helm
ansible.builtin.command:
chdir: /tmp
cmd: wget https://get.helm.sh/helm-v{{ helm_version }}-linux-amd64.tar.gz
creates: /tmp/helm-v{{ helm_version }}-linux-amd64.tar.gz
when: not have_helm.stat.exists
- name: Unpack helm
ansible.builtin.command:
chdir: /tmp
cmd: tar xfv helm-v{{ helm_version }}-linux-amd64.tar.gz
creates: /tmp/linux-amd64/helm
when: not have_helm.stat.exists
- name: Install helm
ansible.builtin.command:
chdir: /tmp
cmd: mv /tmp/linux-amd64/helm /usr/local/bin
creates: /usr/local/bin/helm
become: true
when: not have_helm.stat.exists
- name: cleanup helm
ansible.builtin.command:
chdir: /tmp
cmd: rm -rf /tmp/helm-v{{ helm_version }}-linux-amd64.tar.gz /tmp/linux-amd64
when: not have_helm.stat.exists

Loading…
Cancel
Save