X-Git-Url: https://gerrit.nordix.org/gitweb?p=infra%2Fstack%2Fkubernetes.git;a=blobdiff_plain;f=playbooks%2Froles%2Fpostinstall%2Ftasks%2Fconfigure-localhost.yml;h=3616adc20b45784451c59f2e84e4b394aa273af6;hp=f6a23b2aea338bbe41f6028880981090bdf7bf09;hb=e3a66b1bc2152760d30fc5bb86fb2b1ab9c3ce23;hpb=fe97d89d279161727ca383b45fbf618797839b29 diff --git a/playbooks/roles/postinstall/tasks/configure-localhost.yml b/playbooks/roles/postinstall/tasks/configure-localhost.yml index f6a23b2..3616adc 100644 --- a/playbooks/roles/postinstall/tasks/configure-localhost.yml +++ b/playbooks/roles/postinstall/tasks/configure-localhost.yml @@ -35,7 +35,7 @@ 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: @@ -51,17 +51,24 @@ 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: