Fix etcd synchronize to other nodes from the downloader

pull/82/head
Greg Althaus 2016-01-21 11:20:37 -06:00
parent 9e9aba4e3a
commit 28e530e005
1 changed files with 8 additions and 5 deletions

View File

@ -3,12 +3,15 @@
user: name=etcd shell=/bin/nologin home=/var/lib/etcd
- name: Install etcd binaries
copy:
src={{ etcd_bin_dir }}/{{ item }}
dest={{ bin_dir }}
owner=etcd
mode=0755
synchronize:
src: "{{ etcd_bin_dir }}/{{ item }}"
dest: "{{ bin_dir }}"
times: yes
archive: no
set_remote_user: false
delegate_to: "{{ groups['downloader'][0] }}"
with_items:
- etcdctl
- etcd
notify: restart etcd