mirror of
https://github.com/kubernetes-sigs/kubespray.git
synced 2026-10-31 06:26:19 -02:30
Mixing two semantically distincts artefacts makes things harder to read and to consume from other code. Needed for clean filtering on container / file.
22 lines
578 B
YAML
22 lines
578 B
YAML
---
|
|
- name: Download etcd binary
|
|
include_tasks: "../../download/tasks/download_file.yml"
|
|
vars:
|
|
download: "{{ download_defaults | combine(downloads.etcd) }}"
|
|
|
|
- name: Copy etcdctl and etcdutl binary from download dir
|
|
copy:
|
|
src: "{{ local_release_dir }}/etcd-v{{ etcd_version }}-linux-{{ host_architecture }}/{{ item }}"
|
|
dest: "{{ bin_dir }}/{{ item }}"
|
|
mode: "0755"
|
|
remote_src: true
|
|
with_items:
|
|
- etcdctl
|
|
- etcdutl
|
|
|
|
- name: Create etcdctl wrapper script
|
|
template:
|
|
src: etcdctl.sh.j2
|
|
dest: "{{ bin_dir }}/etcdctl.sh"
|
|
mode: "0755"
|