diff --git a/roles/etcd/tasks/install.yml b/roles/etcd/tasks/install.yml index 5b83f815a858fefd63ddc6ba779e57cfb85d50cb..f594ae9bc6350d8c8550c3d9e36b616ffa3f28e0 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 +