Skip to content
Snippets Groups Projects
Unverified Commit 0aaba5ea authored by Vadim's avatar Vadim Committed by GitHub
Browse files

added destination filename to cp command (#7764)

parent bd6d810d
No related branches found
No related tags found
No related merge requests found
......@@ -38,11 +38,11 @@
- block:
- name: Copy etcdctl script to host
shell: "{{ docker_bin_dir }}/docker exec \"$({{ docker_bin_dir }}/docker ps -qf ancestor={{ etcd_image_repo }}:{{ etcd_image_tag }})\" cp /usr/local/bin/etcdctl {{ etcd_data_dir }}"
shell: "{{ docker_bin_dir }}/docker exec \"$({{ docker_bin_dir }}/docker ps -qf ancestor={{ etcd_image_repo }}:{{ etcd_image_tag }})\" cp /usr/local/bin/etcdctl {{ etcd_data_dir }}/etcdctl"
when: container_manager == "docker"
- name: Copy etcdctl script to host
shell: "{{ bin_dir }}/crictl exec \"$({{ bin_dir }}/crictl ps -q --image {{ etcd_image_repo }}:{{ etcd_image_tag }})\" cp /usr/local/bin/etcdctl {{ etcd_data_dir }}"
shell: "{{ bin_dir }}/crictl exec \"$({{ bin_dir }}/crictl ps -q --image {{ etcd_image_repo }}:{{ etcd_image_tag }})\" cp /usr/local/bin/etcdctl {{ etcd_data_dir }}/etcdctl"
when: container_manager in ['crio', 'containerd']
- name: Copy etcdctl to {{ bin_dir }}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment