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

  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:/usr/local/bin/etcdctl {{ bin_dir }}/etcdctl &&
  6. {{ docker_bin_dir }}/docker rm -f etcdctl-binarycopy"
  7. register: etcd_task_result
  8. until: etcd_task_result.rc == 0
  9. retries: 4
  10. delay: "{{ retry_stagger | random + 3 }}"
  11. changed_when: false
  12. - name: Install etcd launch script
  13. template:
  14. src: etcd.j2
  15. dest: "{{ bin_dir }}/etcd"
  16. owner: 'root'
  17. mode: 0755
  18. backup: yes
  19. notify: restart etcd
  20. - name: Install etcd-events launch script
  21. template:
  22. src: etcd-events.j2
  23. dest: "{{ bin_dir }}/etcd-events"
  24. owner: 'root'
  25. mode: 0755
  26. backup: yes
  27. when: etcd_events_cluster_setup
  28. notify: restart etcd-events