config.yml 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  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. - name: Verify Requirements - EL
  12. when: ansible_distribution != "Fedora"
  13. action: openshift_health_check
  14. args:
  15. checks:
  16. - disk_availability
  17. - memory_availability
  18. - package_availability
  19. - package_version
  20. - docker_image_availability
  21. - docker_storage
  22. - name: Verify Requirements - Fedora
  23. when: ansible_distribution == "Fedora"
  24. action: openshift_health_check
  25. args:
  26. checks:
  27. - docker_image_availability
  28. - include: ../openshift-etcd/config.yml
  29. - include: ../openshift-nfs/config.yml
  30. when: groups.oo_nfs_to_config | default([]) | count > 0
  31. - include: ../openshift-loadbalancer/config.yml
  32. when: groups.oo_lb_to_config | default([]) | count > 0
  33. - include: ../openshift-master/config.yml
  34. - include: ../openshift-master/additional_config.yml
  35. - include: ../openshift-node/config.yml
  36. - include: ../openshift-glusterfs/config.yml
  37. when: groups.oo_glusterfs_to_config | default([]) | count > 0
  38. - include: openshift_hosted.yml
  39. - include: openshift_metrics.yml
  40. when: openshift_metrics_install_metrics | default(false) | bool
  41. - include: openshift_logging.yml
  42. when: openshift_logging_install_logging | default(false) | bool
  43. - include: service_catalog.yml
  44. when: openshift_enable_service_catalog | default(false) | bool
  45. - include: ../openshift-management/config.yml
  46. when: openshift_management_install_management | default(false) | bool
  47. - name: Print deprecated variable warning message if necessary
  48. hosts: oo_first_master
  49. gather_facts: no
  50. tasks:
  51. - debug: msg="{{__deprecation_message}}"
  52. when:
  53. - __deprecation_message | default ('') | length > 0