main.yml 1.0 KB

1234567891011121314151617181920212223242526272829
  1. ---
  2. # Determine the openshift_version to configure if none has been specified or set previously.
  3. - set_fact:
  4. is_containerized: "{{ openshift.common.is_containerized | default(False) | bool }}"
  5. - debug: var=openshift_version
  6. - debug: var=openshift_release
  7. - debug: var=openshift_pkg_version
  8. - debug: var=openshift_image_tag
  9. # Here we protect the version already installed unless something has already set
  10. # an openshift_version to configure.
  11. - name: Use openshift.common.version fact as version to configure if already installed
  12. set_fact:
  13. openshift_version: "{{ openshift.common.version }}"
  14. when: openshift.common.version is defined and openshift_version is not defined
  15. - name: Set openshift_version for rpm installation
  16. include: set_version_rpm.yml
  17. when: not is_containerized and openshift_version is not defined
  18. - name: Set openshift_version for containerized installation
  19. include: set_version_containerized.yml
  20. when: is_containerized and openshift_version is not defined
  21. - debug: var=openshift_version