mirror of https://github.com/ceph/ceph-ansible.git
Merge pull request #394 from ti-mo/master
Enable optional-rpms on official RHEL for yum-plugin-prioritiespull/398/head
commit
00bca9a535
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue