2016-09-07 18:02:06 +00:00
|
|
|
---
|
2020-12-02 08:20:50 +00:00
|
|
|
- name: Helm | Download helm
|
|
|
|
include_tasks: "../../../download/tasks/download_file.yml"
|
|
|
|
vars:
|
|
|
|
download: "{{ download_defaults | combine(downloads.helm) }}"
|
|
|
|
|
2021-04-11 07:37:59 +00:00
|
|
|
- name: Helm | Copy helm binary from download dir
|
2020-12-02 08:20:50 +00:00
|
|
|
synchronize:
|
|
|
|
src: "{{ local_release_dir }}/helm-{{ helm_version }}/linux-{{ image_arch }}/helm"
|
|
|
|
dest: "{{ bin_dir }}/helm"
|
|
|
|
compress: no
|
|
|
|
perms: yes
|
|
|
|
owner: no
|
|
|
|
group: no
|
|
|
|
delegate_to: "{{ inventory_hostname }}"
|
|
|
|
|
2021-04-11 07:37:59 +00:00
|
|
|
- name: Helm | Get helm completion
|
2020-12-02 08:20:50 +00:00
|
|
|
command: "{{ bin_dir }}/helm completion bash"
|
|
|
|
changed_when: False
|
|
|
|
register: helm_completion
|
|
|
|
check_mode: False
|
|
|
|
|
2021-04-11 07:37:59 +00:00
|
|
|
- name: Helm | Install helm completion
|
2020-12-02 08:20:50 +00:00
|
|
|
copy:
|
|
|
|
dest: /etc/bash_completion.d/helm.sh
|
|
|
|
content: "{{ helm_completion.stdout }}"
|
2022-01-09 09:51:12 +00:00
|
|
|
mode: 0755
|
2020-12-02 08:20:50 +00:00
|
|
|
become: True
|