version_override.yml 1.5 KB

12345678910111213141516171819202122232425262728
  1. ---
  2. # This playbook overrides normal version setting during double upgrades.
  3. - name: Set proper version values for upgrade
  4. hosts: "{{ l_version_override_hosts | default('all:!all') }}"
  5. tasks:
  6. - set_fact:
  7. # All of these will either have been set by openshift_version or
  8. # provided by the user; we need to save these for later.
  9. l_double_upgrade_saved_version: "{{ openshift_version }}"
  10. l_double_upgrade_saved_release: "{{ openshift_release | default(openshift_upgrade_target) }}"
  11. l_double_upgrade_saved_tag: "{{ openshift_image_tag }}"
  12. l_double_upgrade_saved_pkgv: "{{ openshift_pkg_version }}"
  13. - set_fact:
  14. # We already ran openshift_version for the second of two upgrades;
  15. # here we need to set some variables to enable the first upgrade.
  16. # openshift_version, openshift_image_tag, and openshift_pkg_version
  17. # will be modified by openshift_version; we want to ensure these
  18. # are initially set to first versions to ensure no accidental usage of
  19. # second versions (eg, 3.8 and 3.9 respectively) are used.
  20. openshift_version: "{{ l_double_upgrade_first_version }}"
  21. openshift_release: "{{ l_double_upgrade_first_release }}"
  22. openshift_upgrade_target: '3.8'
  23. openshift_upgrade_min: '3.7'
  24. # Now that we have force-set a different version, we need to update a few things
  25. # to ensure we have settings that actually match what's in repos/registries.
  26. - import_playbook: ../../../../init/version.yml