summaryrefslogtreecommitdiffstats
path: root/roles/openshift_version
diff options
context:
space:
mode:
authorScott Dodson <sdodson@redhat.com>2017-12-18 16:49:05 -0500
committerScott Dodson <sdodson@redhat.com>2018-01-17 13:32:12 -0500
commit9a02a7a96d4de691e1f265e88ff4d5ee3f0b7244 (patch)
tree5282a31fdb6cc85df5a41dd155001e54b834fb1e /roles/openshift_version
parentda12b2c603eea973466c47b5d6d668ddea6b05fd (diff)
downloadopenshift-9a02a7a96d4de691e1f265e88ff4d5ee3f0b7244.tar.gz
openshift-9a02a7a96d4de691e1f265e88ff4d5ee3f0b7244.tar.bz2
openshift-9a02a7a96d4de691e1f265e88ff4d5ee3f0b7244.tar.xz
openshift-9a02a7a96d4de691e1f265e88ff4d5ee3f0b7244.zip
Exclude 3.9 packages during 3.8 upgrade
There are some obsoletes in 3.9 packages which lead yum to upgrade directly from 3.7 to 3.9 when you ask for 3.8 packages while 3.9 repos are enabled. Since we'd like to allow people to run one playbook to upgrade from 3.7 to 3.8 to 3.9 we need to exclude those packages when upgrading to 3.8
Diffstat (limited to 'roles/openshift_version')
-rw-r--r--roles/openshift_version/tasks/check_available_rpms.yml2
1 files changed, 1 insertions, 1 deletions
diff --git a/roles/openshift_version/tasks/check_available_rpms.yml b/roles/openshift_version/tasks/check_available_rpms.yml
index bdbc63d27..fea0daf77 100644
--- a/roles/openshift_version/tasks/check_available_rpms.yml
+++ b/roles/openshift_version/tasks/check_available_rpms.yml
@@ -1,7 +1,7 @@
---
- name: Get available {{ openshift_service_type}} version
repoquery:
- name: "{{ openshift_service_type}}"
+ name: "{{ openshift_service_type}}{{ '-' ~ openshift_release ~ '*' if openshift_release is defined else '' }}"
ignore_excluders: true
register: rpm_results