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.

39 lines
988 B

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