kubespray/roles/kubernetes-apps/helm/tasks/main.yml

20 lines
681 B
YAML
Raw Normal View History

2016-09-08 02:02:06 +08:00
---
- name: Helm | Make sure HELM_HOME directory exists
file: path={{ helm_home_dir }} state=directory
2017-03-17 19:56:25 +08:00
- name: Helm | Set up helm launcher
template:
src: helm-container.j2
dest: "{{ bin_dir }}/helm"
owner: root
mode: 0755
register: helm_container
- name: Helm | Install/upgrade helm
command: "{{ bin_dir }}/helm init --upgrade --tiller-image={{ tiller_image_repo }}:{{ tiller_image_tag }}"
2017-03-17 19:56:25 +08:00
when: helm_container.changed
- name: Helm | Set up bash completion
2017-06-19 14:33:50 +08:00
shell: "umask 022 && {{ bin_dir }}/helm completion bash >/etc/bash_completion.d/helm.sh"
when: ( helm_container.changed and not ansible_os_family in ["CoreOS", "Container Linux by CoreOS"] )