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.

12 lines
624 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:{{ etcd_container_bin_dir }}etcdctl {{ bin_dir }}/etcdctl &&
  6. {{ docker_bin_dir }}/docker rm -f etcdctl-binarycopy"
  7. when: etcd_deployment_type == "docker"
  8. register: etcd_task_result
  9. until: etcd_task_result.rc == 0
  10. retries: 4
  11. delay: "{{ retry_stagger | random + 3 }}"
  12. changed_when: false