main.yml 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. ---
  2. # These tasks dispatch to the proper set of docker tasks based on the
  3. # inventory:openshift_docker_use_system_container variable
  4. - include: udev_workaround.yml
  5. when: docker_udev_workaround | default(False) | bool
  6. - set_fact:
  7. l_use_system_container: "{{ openshift.docker.use_system_container | default(False) }}"
  8. l_use_crio: "{{ openshift_use_crio | default(False) }}"
  9. l_use_crio_only: "{{ openshift_use_crio_only | default(False) }}"
  10. - when:
  11. - openshift_deployment_type == 'openshift-enterprise'
  12. assert:
  13. that:
  14. - "openshift_image_tag is defined"
  15. msg: >
  16. openshift_image_tag is a required inventory variable when installing openshift-enterprise
  17. - name: Use Package Docker if Requested
  18. include: package_docker.yml
  19. when:
  20. - not l_use_system_container
  21. - not l_use_crio_only
  22. - name: Use System Container Docker if Requested
  23. include: systemcontainer_docker.yml
  24. when:
  25. - l_use_system_container
  26. - not l_use_crio_only
  27. - name: Add CRI-O usage Requested
  28. include: systemcontainer_crio.yml
  29. when:
  30. - l_use_crio
  31. - inventory_hostname in groups['oo_masters_to_config'] or inventory_hostname in groups['oo_nodes_to_config']