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
964 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.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: Ensure etcd is running
  18. service:
  19. name: etcd
  20. state: started
  21. enabled: yes
  22. when: is_etcd_master
  23. - name: Restart etcd if binary changed
  24. command: /bin/true
  25. notify: restart etcd
  26. when: etcd_deployment_type == "host" and etcd_copy.stdout_lines and is_etcd_master
  27. # Reload systemd before starting service
  28. - meta: flush_handlers
  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. when: is_etcd_master
  34. - include: refresh_config.yml
  35. when: is_etcd_master