2016-01-19 14:23:19 +00:00
|
|
|
---
|
2016-12-13 17:20:22 +00:00
|
|
|
- name: Install | Copy etcdctl binary from docker container
|
2016-12-23 14:44:44 +00:00
|
|
|
command: sh -c "{{ docker_bin_dir }}/docker rm -f etcdctl-binarycopy;
|
|
|
|
{{ docker_bin_dir }}/docker create --name etcdctl-binarycopy {{ etcd_image_repo }}:{{ etcd_image_tag }} &&
|
|
|
|
{{ docker_bin_dir }}/docker cp etcdctl-binarycopy:{{ etcd_container_bin_dir }}etcdctl {{ bin_dir }}/etcdctl &&
|
|
|
|
{{ docker_bin_dir }}/docker rm -f etcdctl-binarycopy"
|
2016-06-24 12:25:16 +00:00
|
|
|
when: etcd_deployment_type == "docker"
|
2016-09-13 12:36:01 +00:00
|
|
|
register: etcd_task_result
|
|
|
|
until: etcd_task_result.rc == 0
|
|
|
|
retries: 4
|
2016-09-15 09:23:27 +00:00
|
|
|
delay: "{{ retry_stagger | random + 3 }}"
|
2016-01-22 15:37:07 +00:00
|
|
|
changed_when: false
|