|
@ -3,12 +3,15 @@ |
|
|
user: name=etcd shell=/bin/nologin home=/var/lib/etcd |
|
|
user: name=etcd shell=/bin/nologin home=/var/lib/etcd |
|
|
|
|
|
|
|
|
- name: Install etcd binaries |
|
|
- 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: |
|
|
with_items: |
|
|
- etcdctl |
|
|
- etcdctl |
|
|
- etcd |
|
|
- etcd |
|
|
notify: restart etcd |
|
|
notify: restart etcd |
|
|
|
|
|
|