src: "{{ engine_cache }}/repos/kubespray/inventory/engine/artifacts/admin.conf"
dest: "/home/{{ ansible_env.SUDO_USER }}/.kube/config"
owner: "{{ ansible_env.SUDO_USER }}"
- mode: 0644
+ mode: 0600
- name: Download kubectl and place it to /usr/local/bin
get_url:
remote_src: true
dest: /tmp
-- name: Place helm and tiller binaries to /usr/local/bin
+- name: Place helm binaries to /usr/local/bin
copy:
- src: "/tmp/linux-amd64/{{ item }}"
+ src: "/tmp/linux-amd64/helm"
remote_src: true
- dest: "/usr/local/bin/{{ item }}"
+ dest: "/usr/local/bin/helm"
owner: root
group: root
mode: 0755
- with_items:
- - helm
- - tiller
+
+- name: Place tiller binaries to /usr/local/bin
+ copy:
+ src: "/tmp/linux-amd64/tiller"
+ remote_src: true
+ dest: "/usr/local/bin/tiller"
+ owner: root
+ group: root
+ mode: 0755
+ when: helm_version is version('v3.0.0', '<')
- name: Delete temporary files and folders
file: