diff options
author | Scott Dodson <sdodson@redhat.com> | 2016-11-16 12:36:31 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-11-16 12:36:31 -0500 |
commit | ccd3248db8e732958f4d1051ac2b149b39f6a1a9 (patch) | |
tree | 893fc4ad135b63eb4e72f684ee50fa65091afab2 /playbooks/common/openshift-cluster | |
parent | 8efb4ddb76ef31f78a139ca8ce6bba06703754aa (diff) | |
parent | b992ef77fddd888a0659e790405ad2a4337516a9 (diff) | |
download | openshift-ccd3248db8e732958f4d1051ac2b149b39f6a1a9.tar.gz openshift-ccd3248db8e732958f4d1051ac2b149b39f6a1a9.tar.bz2 openshift-ccd3248db8e732958f4d1051ac2b149b39f6a1a9.tar.xz openshift-ccd3248db8e732958f4d1051ac2b149b39f6a1a9.zip |
Merge pull request #2815 from dgoodwin/yumCheck
Check for bad versions of yum and subscription-manager.
Diffstat (limited to 'playbooks/common/openshift-cluster')
-rw-r--r-- | playbooks/common/openshift-cluster/initialize_openshift_version.yml | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/playbooks/common/openshift-cluster/initialize_openshift_version.yml b/playbooks/common/openshift-cluster/initialize_openshift_version.yml index 7112a6084..2f384ddea 100644 --- a/playbooks/common/openshift-cluster/initialize_openshift_version.yml +++ b/playbooks/common/openshift-cluster/initialize_openshift_version.yml @@ -1,5 +1,21 @@ --- # NOTE: requires openshift_facts be run +- hosts: l_oo_all_hosts + gather_facts: no + tasks: + # See: + # https://bugzilla.redhat.com/show_bug.cgi?id=1395047 + # https://bugzilla.redhat.com/show_bug.cgi?id=1282961 + # https://github.com/openshift/openshift-ansible/issues/1138 + - name: Check for bad combinations of yum and subscription-manager + command: > + {{ repoquery_cmd }} --installed --qf '%{version}' "yum" + register: yum_ver_test + changed_when: false + - fail: + msg: Incompatible versions of yum and subscription-manager found. You may need to update yum and yum-utils. + when: "'Plugin \"search-disabled-repos\" requires API 2.7. Supported API is 2.6.' in yum_ver_test.stdout" + - name: Determine openshift_version to configure on first master hosts: oo_first_master roles: |