main.yml 829 B

12345678910111213141516171819202122232425262728
  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. - name: Use Package Docker if Requested
  11. include: package_docker.yml
  12. when:
  13. - not l_use_system_container
  14. - not l_use_crio_only
  15. - name: Use System Container Docker if Requested
  16. include: systemcontainer_docker.yml
  17. when:
  18. - l_use_system_container
  19. - not l_use_crio_only
  20. - name: Add CRI-O usage Requested
  21. include: systemcontainer_crio.yml
  22. when:
  23. - l_use_crio