2018-02-12 16:34:01 +00:00
|
|
|
---
|
2018-09-16 02:50:56 +00: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-12 16:34:01 +00:00
|
|
|
changed_when: false
|
2018-09-16 02:50:56 +00:00
|
|
|
delegate_to: "{{ inventory_hostname }}"
|
|
|
|
with_items:
|
|
|
|
- "etcd"
|
|
|
|
- "etcdctl"
|
2018-04-01 16:58:08 +00:00
|
|
|
when: etcd_cluster_setup
|
2018-07-30 09:55:25 +00:00
|
|
|
|
2018-09-16 02:50:56 +00:00
|
|
|
- name: install | Set etcd and etcdctl binary permissions
|
2018-07-30 09:55:25 +00:00
|
|
|
file:
|
2018-09-16 02:50:56 +00:00
|
|
|
path: "{{ bin_dir }}/{{ item }}"
|
2018-07-30 09:55:25 +00:00
|
|
|
mode: "0755"
|
|
|
|
state: file
|
2018-09-16 02:50:56 +00:00
|
|
|
with_items:
|
|
|
|
- "etcd"
|
|
|
|
- "etcdctl"
|
2018-07-30 09:55:25 +00:00
|
|
|
when: etcd_cluster_setup
|