From: Timo Beckers Date: Thu, 27 Aug 2015 10:13:20 +0000 (+0200) Subject: Enable optional-rpms on official RHEL for yum-plugin-priorities X-Git-Tag: v1.0.0~118^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F394%2Fhead;p=ceph-ansible.git Enable optional-rpms on official RHEL for yum-plugin-priorities --- diff --git a/roles/ceph-common/tasks/pre_requisites/prerequisite_rh_storage_cdn_install.yml b/roles/ceph-common/tasks/pre_requisites/prerequisite_rh_storage_cdn_install.yml index 1879f38bb..5571c6400 100644 --- a/roles/ceph-common/tasks/pre_requisites/prerequisite_rh_storage_cdn_install.yml +++ b/roles/ceph-common/tasks/pre_requisites/prerequisite_rh_storage_cdn_install.yml @@ -4,6 +4,17 @@ register: subscription changed_when: false +- name: check if the red hat optional repo is present + shell: yum --noplugins --cacheonly repolist | grep -sq rhel-7-server-optional-rpms + changed_when: false + failed_when: false + register: rh_optional_repo + +- name: enable red hat optional repository + command: subscription-manager repos --enable rhel-7-server-optional-rpms + changed_when: false + when: rh_optional_repo.rc != 0 + - name: check if the red hat storage monitor repo is already present shell: yum --noplugins --cacheonly repolist | grep -sq rhel-7-server-rhceph-1.3-mon-rpms changed_when: false