config.yml 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283
  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: Set hostname
  24. hosts: oo_masters_to_config:oo_nodes_to_config
  25. tasks:
  26. # TODO: switch back to hostname module once we depend on ansible-2.4
  27. # https://github.com/ansible/ansible/pull/25906
  28. - name: Set hostname
  29. command: "hostnamectl set-hostname {{ openshift.common.hostname }}"
  30. when: openshift_set_hostname | default(false,true) | bool
  31. - include: ../openshift-etcd/config.yml
  32. - include: ../openshift-nfs/config.yml
  33. tags:
  34. - nfs
  35. - include: ../openshift-loadbalancer/config.yml
  36. tags:
  37. - loadbalancer
  38. - include: ../openshift-master/config.yml
  39. - include: ../openshift-master/additional_config.yml
  40. - include: ../openshift-node/config.yml
  41. tags:
  42. - node
  43. - include: ../openshift-glusterfs/config.yml
  44. tags:
  45. - glusterfs
  46. - include: openshift_hosted.yml
  47. tags:
  48. - hosted
  49. - name: Configure API Aggregation on masters
  50. hosts: oo_masters
  51. serial: 1
  52. tasks:
  53. - block:
  54. - include_role:
  55. name: openshift_service_catalog
  56. tasks_from: wire_aggregator
  57. vars:
  58. first_master: "{{ groups.oo_first_master[0] }}"
  59. - include: service_catalog.yml
  60. when:
  61. - openshift_enable_service_catalog | default(false) | bool
  62. tags:
  63. - servicecatalog
  64. - name: Print deprecated variable warning message if necessary
  65. hosts: oo_first_master
  66. gather_facts: no
  67. tasks:
  68. - debug: msg="{{__deprecation_message}}"
  69. when:
  70. - __deprecation_message | default ('') | length > 0