From 28e530e005e7d6217e596b9da773ed2235b1d644 Mon Sep 17 00:00:00 2001 From: Greg Althaus Date: Thu, 21 Jan 2016 11:20:37 -0600 Subject: [PATCH] Fix etcd synchronize to other nodes from the downloader --- roles/etcd/tasks/install.yml | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/roles/etcd/tasks/install.yml b/roles/etcd/tasks/install.yml index 5b83f815a..f594ae9bc 100644 --- a/roles/etcd/tasks/install.yml +++ b/roles/etcd/tasks/install.yml @@ -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 +