kubespray/roles/etcd/tasks/install_host.yml

26 lines
604 B
YAML
Raw Normal View History

---
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
changed_when: false
2018-09-16 10:50:56 +08:00
delegate_to: "{{ inventory_hostname }}"
with_items:
- "etcd"
- "etcdctl"
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