2018-02-13 00:34:01 +08:00
|
|
|
---
|
2018-09-16 10:50:56 +08:00
|
|
|
- name: install | Copy etcd and etcdctl binary from download dir
|
|
|
|
synchronize:
|
|
|
|
src: "{{ local_release_dir }}/etcd-{{ etcd_version }}-linux-amd64/{{ item }}"
|
|
|
|
dest: "{{ bin_dir }}/{{ item }}"
|
|
|
|
compress: no
|
|
|
|
perms: yes
|
|
|
|
owner: no
|
|
|
|
group: no
|
2018-02-13 00:34:01 +08:00
|
|
|
changed_when: false
|
2018-09-16 10:50:56 +08:00
|
|
|
delegate_to: "{{ inventory_hostname }}"
|
|
|
|
with_items:
|
|
|
|
- "etcd"
|
|
|
|
- "etcdctl"
|
2018-04-02 00:58:08 +08:00
|
|
|
when: etcd_cluster_setup
|
2018-07-30 17:55:25 +08:00
|
|
|
|
2018-09-16 10:50:56 +08:00
|
|
|
- name: install | Set etcd and etcdctl binary permissions
|
2018-07-30 17:55:25 +08:00
|
|
|
file:
|
2018-09-16 10:50:56 +08:00
|
|
|
path: "{{ bin_dir }}/{{ item }}"
|
2018-07-30 17:55:25 +08:00
|
|
|
mode: "0755"
|
|
|
|
state: file
|
2018-09-16 10:50:56 +08:00
|
|
|
with_items:
|
|
|
|
- "etcd"
|
|
|
|
- "etcdctl"
|
2018-07-30 17:55:25 +08:00
|
|
|
when: etcd_cluster_setup
|