use command instead of synchronize

This commit is contained in:
Smaine Kahlouch
2016-01-22 16:37:07 +01:00
parent 078b67c50f
commit cb59559835
8 changed files with 41 additions and 63 deletions

View File

@@ -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