You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

11 lines
604 B

  1. ---
  2. - name: Install | Copy etcdctl binary from docker container
  3. command: sh -c "{{ docker_bin_dir }}/docker rm -f etcdctl-binarycopy;
  4. {{ docker_bin_dir }}/docker create --name etcdctl-binarycopy {{ etcd_image_repo }}:{{ etcd_image_tag }} &&
  5. {{ docker_bin_dir }}/docker cp etcdctl-binarycopy:/usr/local/bin/etcdctl {{ bin_dir }}/etcdctl &&
  6. {{ docker_bin_dir }}/docker rm -f etcdctl-binarycopy"
  7. register: etcdctl_install_result
  8. until: etcdctl_install_result.rc == 0
  9. retries: "{{ etcd_retries }}"
  10. delay: "{{ retry_stagger | random + 3 }}"
  11. changed_when: false