fix ansible password authentication (#6907)

* copying ssh key no longer required, works with password auth
* use copy module instead of synchronize (which requires sshpass)
* less tasks and always changed tasks
This commit is contained in:
Hans Feldt
2020-12-01 00:12:50 +01:00
committed by GitHub
parent cc5303e1c8
commit 80eb1ad936
6 changed files with 18 additions and 66 deletions

View File

@@ -20,24 +20,11 @@
- kube_encrypt_secret_data
- name: Install | Copy kubectl binary from download dir
synchronize:
copy:
src: "{{ local_release_dir }}/kubectl-{{ kube_version }}-{{ image_arch }}"
dest: "{{ bin_dir }}/kubectl"
compress: no
perms: yes
owner: no
group: no
changed_when: false
delegate_to: "{{ inventory_hostname }}"
tags:
- kubectl
- upgrade
- name: install | Set kubectl binary permissions
file:
path: "{{ bin_dir }}/kubectl"
mode: "0755"
state: file
mode: 0755
remote_src: true
tags:
- kubectl
- upgrade