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.

48 lines
1.1 KiB

9 years ago
  1. ---
  2. - include: pre_upgrade.yml
  3. when: etcd_cluster_setup
  4. tags: etcd-pre-upgrade
  5. - include: check_certs.yml
  6. when: cert_management == "script"
  7. tags: [etcd-secrets, facts]
  8. - include: "gen_certs_{{ cert_management }}.yml"
  9. tags: etcd-secrets
  10. - include: "install_{{ etcd_deployment_type }}.yml"
  11. when: is_etcd_master
  12. tags: upgrade
  13. - include: set_cluster_health.yml
  14. when: is_etcd_master and etcd_cluster_setup
  15. - include: configure.yml
  16. when: is_etcd_master and etcd_cluster_setup
  17. - include: refresh_config.yml
  18. when: is_etcd_master and etcd_cluster_setup
  19. - name: Restart etcd if certs changed
  20. command: /bin/true
  21. notify: restart etcd
  22. when: is_etcd_master and etcd_secret_changed|default(false)
  23. # reload-systemd
  24. - meta: flush_handlers
  25. - name: Ensure etcd is running
  26. service:
  27. name: etcd
  28. state: started
  29. enabled: yes
  30. when: is_etcd_master and etcd_cluster_setup
  31. # After etcd cluster is assembled, make sure that
  32. # initial state of the cluster is in `existing`
  33. # state insted of `new`.
  34. - include: set_cluster_health.yml
  35. when: is_etcd_master and etcd_cluster_setup
  36. - include: refresh_config.yml
  37. when: is_etcd_master and etcd_cluster_setup