c12s-kubespray/roles/etcd/tasks/install_host.yml

21 lines
626 B
YAML
Raw Normal View History

---
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"
changed_when: false
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