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

26 lines
604 B
YAML
Raw Normal View History

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