Merge pull request #394 from ti-mo/master

Enable optional-rpms on official RHEL for yum-plugin-priorities
pull/398/head
Leseb 2015-09-01 17:03:08 +02:00
commit 00bca9a535
1 changed files with 11 additions and 0 deletions

View File

@ -4,6 +4,17 @@
register: subscription register: subscription
changed_when: false 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 - 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 shell: yum --noplugins --cacheonly repolist | grep -sq rhel-7-server-rhceph-1.3-mon-rpms
changed_when: false changed_when: false