first_master_rpm_version.yml 764 B

123456789101112131415161718
  1. ---
  2. - name: Set rpm version to configure if openshift_pkg_version specified
  3. set_fact:
  4. # Expects a leading "-" in inventory, strip it off here, and remove trailing release,
  5. openshift_version: "{{ openshift_pkg_version[1:].split('-')[0] }}"
  6. when:
  7. - openshift_pkg_version is defined
  8. - openshift_version is not defined
  9. # These tasks should only be run against masters and nodes
  10. - name: Set openshift_version for rpm installation
  11. include_tasks: check_available_rpms.yml
  12. # If double upgrade is in process, we want to set openshift_version to whatever
  13. # rpm package is available.
  14. - set_fact:
  15. openshift_version: "{{ rpm_results.results.versions.available_versions.0 }}"
  16. when: openshift_version is not defined or l_double_upgrade_cp_reset_version