summaryrefslogtreecommitdiffstats
path: root/roles/rhel_subscribe
diff options
context:
space:
mode:
authorPep TurrĂ³ Mauri <pep@redhat.com>2015-08-02 14:06:02 +0200
committerPep TurrĂ³ Mauri <pep@redhat.com>2015-08-02 14:08:51 +0200
commit8e04a1650d54afb813f9b48b9deaa76b1aab3903 (patch)
treec43f7f116778d4d06a8d8a0a0fc5dd0e01388931 /roles/rhel_subscribe
parent3c2893290640865cce15f6093a9ab2f11c294acd (diff)
downloadopenshift-8e04a1650d54afb813f9b48b9deaa76b1aab3903.tar.gz
openshift-8e04a1650d54afb813f9b48b9deaa76b1aab3903.tar.bz2
openshift-8e04a1650d54afb813f9b48b9deaa76b1aab3903.tar.xz
openshift-8e04a1650d54afb813f9b48b9deaa76b1aab3903.zip
Fine tune RHEL repos
Disable all repos before explicitly enabling the expected ones: sometimes active repos might be polluted (e.g. depending on the result of rhsm auto-attach). Enable Extras and Optional repos.
Diffstat (limited to 'roles/rhel_subscribe')
-rw-r--r--roles/rhel_subscribe/tasks/enterprise.yml5
1 files changed, 5 insertions, 0 deletions
diff --git a/roles/rhel_subscribe/tasks/enterprise.yml b/roles/rhel_subscribe/tasks/enterprise.yml
index fc4d44745..26ca5d807 100644
--- a/roles/rhel_subscribe/tasks/enterprise.yml
+++ b/roles/rhel_subscribe/tasks/enterprise.yml
@@ -1,5 +1,10 @@
---
+- name: Disable all repositories
+ command: subscription-manager repos --disable="*"
+
- name: Enable RHEL repositories
command: subscription-manager repos \
--enable="rhel-7-server-rpms" \
+ --enable="rhel-7-server-extras-rpms" \
+ --enable="rhel-7-server-optional-rpms" \
--enable="rhel-7-server-ose-3.0-rpms"