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

@@ -22,14 +22,11 @@
- not skip_kubeadm_images|default(false)
- name: prep_kubeadm_images | Copy kubeadm binary from download dir to system path
synchronize:
copy:
src: "{{ local_release_dir }}/kubeadm-{{ kubeadm_version }}-{{ image_arch }}"
dest: "{{ bin_dir }}/kubeadm"
compress: no
perms: yes
owner: no
group: no
delegate_to: "{{ inventory_hostname }}"
mode: 0755
remote_src: true
- name: prep_kubeadm_images | Set kubeadm binary permissions
file: