config.yml 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  1. ---
  2. # TODO: refactor this into its own include
  3. # and pass a variable for ctx
  4. - name: Verify Requirements
  5. hosts: oo_all_hosts
  6. roles:
  7. - openshift_health_checker
  8. vars:
  9. - r_openshift_health_checker_playbook_context: "install"
  10. post_tasks:
  11. - action: openshift_health_check
  12. args:
  13. checks:
  14. - disk_availability
  15. - memory_availability
  16. - package_availability
  17. - package_version
  18. - docker_image_availability
  19. - docker_storage
  20. - include: initialize_oo_option_facts.yml
  21. tags:
  22. - always
  23. - name: Disable excluders
  24. hosts: oo_masters_to_config:oo_nodes_to_config
  25. tags:
  26. - always
  27. gather_facts: no
  28. roles:
  29. - role: openshift_excluder
  30. r_openshift_excluder_action: disable
  31. r_openshift_excluder_service_type: "{{ openshift.common.service_type }}"
  32. - include: ../openshift-etcd/config.yml
  33. tags:
  34. - etcd
  35. - include: ../openshift-nfs/config.yml
  36. tags:
  37. - nfs
  38. - include: ../openshift-loadbalancer/config.yml
  39. tags:
  40. - loadbalancer
  41. - include: ../openshift-master/config.yml
  42. tags:
  43. - master
  44. - include: additional_config.yml
  45. tags:
  46. - master
  47. - include: ../openshift-node/config.yml
  48. tags:
  49. - node
  50. - include: ../openshift-glusterfs/config.yml
  51. tags:
  52. - glusterfs
  53. - include: openshift_hosted.yml
  54. tags:
  55. - hosted
  56. - include: service_catalog.yml
  57. when:
  58. - openshift_enable_service_catalog | default(false) | bool
  59. tags:
  60. - servicecatalog
  61. - name: Re-enable excluder if it was previously enabled
  62. hosts: oo_masters_to_config:oo_nodes_to_config
  63. tags:
  64. - always
  65. gather_facts: no
  66. roles:
  67. - role: openshift_excluder
  68. r_openshift_excluder_action: enable
  69. r_openshift_excluder_service_type: "{{ openshift.common.service_type }}"