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.

35 lines
872 B

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