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
682 B

  1. ---
  2. - name: Install | Copy etcdctl and etcd 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 cp etcdctl-binarycopy:/usr/local/bin/etcd {{ bin_dir }}/etcd &&
  7. {{ docker_bin_dir }}/docker rm -f etcdctl-binarycopy"
  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