2018-02-13 00:34:01 +08:00
|
|
|
---
|
2018-07-30 17:55:25 +08: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-13 00:34:01 +08:00
|
|
|
changed_when: false
|
2018-04-02 00:58:08 +08:00
|
|
|
when: etcd_cluster_setup
|
2018-07-30 17:55:25 +08: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
|