2018-02-12 16:34:01 +00:00
|
|
|
---
|
2018-07-30 09:55:25 +00:00
|
|
|
- name: install | Copy etcd binary from download dir
|
|
|
|
shell: |
|
|
|
|
rsync -piu "{{ local_release_dir }}/etcd-{{ etcd_version }}-linux-amd64/etcd" "{{ bin_dir }}/etcd"
|
|
|
|
rsync -piu "{{ local_release_dir }}/etcd-{{ etcd_version }}-linux-amd64/etcdctl" "{{ bin_dir }}/etcdctl"
|
2018-02-12 16:34:01 +00:00
|
|
|
changed_when: false
|
2018-04-01 16:58:08 +00:00
|
|
|
when: etcd_cluster_setup
|
2018-07-30 09:55:25 +00:00
|
|
|
|
|
|
|
- name: install | Set etcd binary permissions
|
|
|
|
file:
|
|
|
|
path: "{{ bin_dir }}/etcd"
|
|
|
|
mode: "0755"
|
|
|
|
state: file
|
|
|
|
when: etcd_cluster_setup
|
|
|
|
|
|
|
|
- name: install | Set etcdctl binary permissions
|
|
|
|
file:
|
|
|
|
path: "{{ bin_dir }}/etcdctl"
|
|
|
|
mode: "0755"
|
|
|
|
state: file
|
|
|
|
when: etcd_cluster_setup
|