|
@ -4,9 +4,17 @@ |
|
|
{{ docker_bin_dir }}/docker create --name etcdctl-binarycopy {{ etcd_image_repo }}:{{ etcd_image_tag }} && |
|
|
{{ docker_bin_dir }}/docker create --name etcdctl-binarycopy {{ etcd_image_repo }}:{{ etcd_image_tag }} && |
|
|
{{ docker_bin_dir }}/docker cp etcdctl-binarycopy:/usr/local/bin/etcdctl {{ bin_dir }}/etcdctl && |
|
|
{{ docker_bin_dir }}/docker cp etcdctl-binarycopy:/usr/local/bin/etcdctl {{ bin_dir }}/etcdctl && |
|
|
{{ docker_bin_dir }}/docker rm -f etcdctl-binarycopy" |
|
|
{{ docker_bin_dir }}/docker rm -f etcdctl-binarycopy" |
|
|
when: etcd_deployment_type == "docker" |
|
|
|
|
|
register: etcd_task_result |
|
|
register: etcd_task_result |
|
|
until: etcd_task_result.rc == 0 |
|
|
until: etcd_task_result.rc == 0 |
|
|
retries: 4 |
|
|
retries: 4 |
|
|
delay: "{{ retry_stagger | random + 3 }}" |
|
|
delay: "{{ retry_stagger | random + 3 }}" |
|
|
changed_when: false |
|
|
changed_when: false |
|
|
|
|
|
|
|
|
|
|
|
- name: Install etcd launch script |
|
|
|
|
|
template: |
|
|
|
|
|
src: etcd.j2 |
|
|
|
|
|
dest: "{{ bin_dir }}/etcd" |
|
|
|
|
|
owner: 'root' |
|
|
|
|
|
mode: 0755 |
|
|
|
|
|
backup: yes |
|
|
|
|
|
notify: restart etcd |