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
969 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. when: etcd_cluster_setup
  13. - name: Install etcd launch script
  14. template:
  15. src: etcd.j2
  16. dest: "{{ bin_dir }}/etcd"
  17. owner: 'root'
  18. mode: 0750
  19. backup: yes
  20. when: etcd_cluster_setup
  21. - name: Install etcd-events launch script
  22. template:
  23. src: etcd-events.j2
  24. dest: "{{ bin_dir }}/etcd-events"
  25. owner: 'root'
  26. mode: 0750
  27. backup: yes
  28. when: etcd_events_cluster_setup