first_master_rpm_version.yml 868 B

1234567891011121314151617181920
  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. - not (openshift_version_reinit | default(false))
  10. # These tasks should only be run against masters and nodes
  11. - name: Set openshift_version for rpm installation
  12. include_tasks: check_available_rpms.yml
  13. - set_fact:
  14. openshift_version: "{{ rpm_results.results.versions.available_versions.0 }}"
  15. when: openshift_version is not defined or ( openshift_version_reinit | default(false) )
  16. - set_fact:
  17. openshift_pkg_version: "-{{ rpm_results.results.versions.available_versions.0 }}"
  18. when: openshift_version_reinit | default(false)