k8s-sig-cluster-lifecycleawskubesprayhigh-availabilityansiblekubernetes-clustergcekubernetesbare-metal
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.
30 lines
968 B
30 lines
968 B
---
|
|
- name: Install | Copy etcdctl binary from docker container
|
|
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:/usr/local/bin/etcdctl {{ bin_dir }}/etcdctl &&
|
|
{{ docker_bin_dir }}/docker rm -f etcdctl-binarycopy"
|
|
register: etcd_task_result
|
|
until: etcd_task_result.rc == 0
|
|
retries: 4
|
|
delay: "{{ retry_stagger | random + 3 }}"
|
|
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
|
|
|
|
- name: Install etcd-events launch script
|
|
template:
|
|
src: etcd-events.j2
|
|
dest: "{{ bin_dir }}/etcd-events"
|
|
owner: 'root'
|
|
mode: 0755
|
|
backup: yes
|
|
when: etcd_events_cluster_setup
|
|
notify: restart etcd-events
|