added destination filename to cp command (#7764)

This commit is contained in:
Vadim 2021-06-30 18:13:03 +03:00 committed by GitHub
parent bd6d810d0a
commit 0aaba5ea30
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -38,11 +38,11 @@
- block: - block:
- name: Copy etcdctl script to host - 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" when: container_manager == "docker"
- name: Copy etcdctl script to host - 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'] when: container_manager in ['crio', 'containerd']
- name: Copy etcdctl to {{ bin_dir }} - name: Copy etcdctl to {{ bin_dir }}