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.

38 lines
963 B

9 years ago
  1. ---
  2. - include: install.yml
  3. - include: set_cluster_health.yml
  4. - include: configure.yml
  5. - include: refresh_config.yml
  6. - name: Ensure etcd is running
  7. service:
  8. name: etcd
  9. state: started
  10. enabled: yes
  11. when: is_etcd_master
  12. - name: Ensure etcd-proxy is running
  13. service:
  14. name: etcd-proxy
  15. state: started
  16. enabled: yes
  17. when: is_etcd_proxy
  18. - name: Restart etcd if binary changed
  19. command: /bin/true
  20. notify: restart etcd
  21. when: etcd_deployment_type == "host" and etcd_copy.stdout_lines and is_etcd_master
  22. - name: Restart etcd-proxy if binary changed
  23. command: /bin/true
  24. notify: restart etcd-proxy
  25. when: etcd_deployment_type == "host" and etcd_copy.stdout_lines and is_etcd_proxy
  26. # Reload systemd before starting service
  27. - meta: flush_handlers
  28. # After etcd cluster is assembled, make sure that
  29. # initial state of the cluster is in `existing`
  30. # state insted of `new`.
  31. - include: set_cluster_health.yml
  32. - include: refresh_config.yml