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.

61 lines
1.6 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_script.yml
  9. when: cert_management == "script"
  10. tags: etcd-secrets
  11. - include: sync_etcd_master_certs.yml
  12. when: cert_management == "vault" and inventory_hostname in groups.etcd
  13. tags: etcd-secrets
  14. - include: sync_etcd_node_certs.yml
  15. when: cert_management == "vault" and inventory_hostname in etcd_node_cert_hosts
  16. tags: etcd-secrets
  17. - include: gen_certs_vault.yml
  18. when: cert_management == "vault" and (etcd_master_certs_needed|d() or etcd_node_certs_needed|d())
  19. tags: etcd-secrets
  20. - include: "install_{{ etcd_deployment_type }}.yml"
  21. when: is_etcd_master
  22. tags: upgrade
  23. - include: set_cluster_health.yml
  24. when: is_etcd_master and etcd_cluster_setup
  25. - include: configure.yml
  26. when: is_etcd_master and etcd_cluster_setup
  27. - include: refresh_config.yml
  28. when: is_etcd_master and etcd_cluster_setup
  29. - name: Restart etcd if certs changed
  30. command: /bin/true
  31. notify: restart etcd
  32. when: is_etcd_master and etcd_secret_changed|default(false)
  33. # reload-systemd
  34. - meta: flush_handlers
  35. - name: Ensure etcd is running
  36. service:
  37. name: etcd
  38. state: started
  39. enabled: yes
  40. when: is_etcd_master and etcd_cluster_setup
  41. # After etcd cluster is assembled, make sure that
  42. # initial state of the cluster is in `existing`
  43. # state insted of `new`.
  44. - include: set_cluster_health.yml
  45. when: is_etcd_master and etcd_cluster_setup
  46. - include: refresh_config.yml
  47. when: is_etcd_master and etcd_cluster_setup