]> git.apps.os.sepia.ceph.com Git - ceph-ansible.git/commitdiff
Enable optional-rpms on official RHEL for yum-plugin-priorities 394/head
authorTimo Beckers <timo.beckers@incline.eu>
Thu, 27 Aug 2015 10:13:20 +0000 (12:13 +0200)
committerTimo Beckers <timo.beckers@incline.eu>
Tue, 1 Sep 2015 14:59:52 +0000 (16:59 +0200)
roles/ceph-common/tasks/pre_requisites/prerequisite_rh_storage_cdn_install.yml

index 1879f38bb7fd3b6764f363fa6da05819402be91d..5571c6400670042662c65d6778025ecf74c04649 100644 (file)
@@ -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