config.yml 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091
  1. ---
  2. - include: std_include.yml
  3. tags:
  4. - always
  5. # TODO: refactor this into its own include
  6. # and pass a variable for ctx
  7. - name: Verify Requirements
  8. hosts: oo_all_hosts
  9. roles:
  10. - openshift_health_checker
  11. vars:
  12. - r_openshift_health_checker_playbook_context: install
  13. post_tasks:
  14. - action: openshift_health_check
  15. args:
  16. checks:
  17. - disk_availability
  18. - memory_availability
  19. - package_availability
  20. - package_version
  21. - docker_image_availability
  22. - docker_storage
  23. - hosts: localhost
  24. tasks:
  25. - fail:
  26. msg: No etcd hosts defined. Running an all-in-one master is deprecated and will no longer be supported in a future upgrade.
  27. when: groups.oo_etcd_to_config | default([]) | length == 0 and not openshift_master_unsupported_all_in_one | default(False)
  28. - include: initialize_oo_option_facts.yml
  29. tags:
  30. - always
  31. - name: Disable excluders
  32. hosts: oo_masters_to_config:oo_nodes_to_config
  33. tags:
  34. - always
  35. gather_facts: no
  36. roles:
  37. - role: openshift_excluder
  38. r_openshift_excluder_action: disable
  39. r_openshift_excluder_service_type: "{{ openshift.common.service_type }}"
  40. - include: ../openshift-etcd/config.yml
  41. tags:
  42. - etcd
  43. - include: ../openshift-nfs/config.yml
  44. tags:
  45. - nfs
  46. - include: ../openshift-loadbalancer/config.yml
  47. tags:
  48. - loadbalancer
  49. - include: ../openshift-master/config.yml
  50. tags:
  51. - master
  52. - include: additional_config.yml
  53. tags:
  54. - master
  55. - include: ../openshift-node/config.yml
  56. tags:
  57. - node
  58. - include: ../openshift-glusterfs/config.yml
  59. tags:
  60. - glusterfs
  61. - include: openshift_hosted.yml
  62. tags:
  63. - hosted
  64. - include: service_catalog.yml
  65. when:
  66. - openshift_enable_service_catalog | default(false) | bool
  67. tags:
  68. - servicecatalog
  69. - name: Re-enable excluder if it was previously enabled
  70. hosts: oo_masters_to_config:oo_nodes_to_config
  71. tags:
  72. - always
  73. gather_facts: no
  74. roles:
  75. - role: openshift_excluder
  76. r_openshift_excluder_action: enable
  77. r_openshift_excluder_service_type: "{{ openshift.common.service_type }}"