config.yml 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687
  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. - hosts: localhost
  21. tasks:
  22. - fail:
  23. msg: No etcd hosts defined. Running an all-in-one master is deprecated and will no longer be supported in a future upgrade.
  24. when: groups.oo_etcd_to_config | default([]) | length == 0 and not openshift_master_unsupported_all_in_one | default(False)
  25. - include: initialize_oo_option_facts.yml
  26. tags:
  27. - always
  28. - name: Disable excluders
  29. hosts: oo_masters_to_config:oo_nodes_to_config
  30. tags:
  31. - always
  32. gather_facts: no
  33. roles:
  34. - role: openshift_excluder
  35. r_openshift_excluder_action: disable
  36. r_openshift_excluder_service_type: "{{ openshift.common.service_type }}"
  37. - include: ../openshift-etcd/config.yml
  38. tags:
  39. - etcd
  40. - include: ../openshift-nfs/config.yml
  41. tags:
  42. - nfs
  43. - include: ../openshift-loadbalancer/config.yml
  44. tags:
  45. - loadbalancer
  46. - include: ../openshift-master/config.yml
  47. tags:
  48. - master
  49. - include: additional_config.yml
  50. tags:
  51. - master
  52. - include: ../openshift-node/config.yml
  53. tags:
  54. - node
  55. - include: ../openshift-glusterfs/config.yml
  56. tags:
  57. - glusterfs
  58. - include: openshift_hosted.yml
  59. tags:
  60. - hosted
  61. - include: service_catalog.yml
  62. when:
  63. - openshift_enable_service_catalog | default(false) | bool
  64. tags:
  65. - servicecatalog
  66. - name: Re-enable excluder if it was previously enabled
  67. hosts: oo_masters_to_config:oo_nodes_to_config
  68. tags:
  69. - always
  70. gather_facts: no
  71. roles:
  72. - role: openshift_excluder
  73. r_openshift_excluder_action: enable
  74. r_openshift_excluder_service_type: "{{ openshift.common.service_type }}"