Replace the raw rsync command with the synchronize module
This commit is contained in:
parent
f4feb17629
commit
fff48d24ea
1 changed files with 7 additions and 2 deletions
|
@ -7,8 +7,13 @@
|
||||||
- kubeadm
|
- kubeadm
|
||||||
|
|
||||||
- name: install | Copy kubeadm binary from download dir
|
- name: install | Copy kubeadm binary from download dir
|
||||||
command: rsync -piu "{{ local_release_dir }}/kubeadm" "{{ bin_dir }}/kubeadm"
|
synchronize:
|
||||||
changed_when: false
|
src: "{{ local_release_dir }}/kubeadm"
|
||||||
|
dest: "{{ bin_dir }}/kubeadm"
|
||||||
|
compress: no
|
||||||
|
owner: no
|
||||||
|
group: no
|
||||||
|
delegate_to: "{{ inventory_hostname }}"
|
||||||
when: kubeadm_enabled
|
when: kubeadm_enabled
|
||||||
tags:
|
tags:
|
||||||
- kubeadm
|
- kubeadm
|
||||||
|
|
Loading…
Reference in a new issue