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.

40 lines
1020 B

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