mirror of
https://github.com/kubernetes-sigs/kubespray.git
synced 2026-03-06 18:17:47 +03:00
use command instead of synchronize
This commit is contained in:
@@ -1,16 +1,8 @@
|
||||
---
|
||||
- name: INSTALL | Create etcd user
|
||||
user: name=etcd shell=/bin/nologin home=/var/lib/etcd
|
||||
|
||||
- name: INSTALL | Copy etcd binaries
|
||||
synchronize:
|
||||
src: "{{ etcd_bin_dir }}/{{ item }}"
|
||||
dest: "{{ bin_dir }}"
|
||||
times: yes
|
||||
archive: no
|
||||
set_remote_user: false
|
||||
delegate_to: "{{ inventory_hostname }}"
|
||||
command: cp -pf "{{ etcd_bin_dir }}/{{ item }}" "{{ bin_dir }}"
|
||||
with_items:
|
||||
- etcdctl
|
||||
- etcd
|
||||
changed_when: false
|
||||
notify: restart etcd
|
||||
|
||||
Reference in New Issue
Block a user