mirror of
https://github.com/kubernetes-sigs/kubespray.git
synced 2026-03-07 02:27:43 +03:00
use rsync instead of command
This commit is contained in:
@@ -1,8 +1,9 @@
|
||||
---
|
||||
- name: INSTALL | Copy etcd binaries
|
||||
command: cp -pf "{{ etcd_bin_dir }}/{{ item }}" "{{ bin_dir }}"
|
||||
with_items:
|
||||
- etcdctl
|
||||
- etcd
|
||||
- name: Install | Copy etcd binary
|
||||
command: rsync -piu "{{ etcd_bin_dir }}/etcd" "{{ bin_dir }}/etcd"
|
||||
register: etcd_copy
|
||||
changed_when: false
|
||||
|
||||
- name: Install | Copy etcdctl binary
|
||||
command: rsync -piu "{{ etcd_bin_dir }}/etcdctl" "{{ bin_dir }}/etcdctl"
|
||||
changed_when: false
|
||||
notify: restart etcd
|
||||
|
||||
Reference in New Issue
Block a user