diff options
author | Pep TurrĂ³ Mauri <pep@redhat.com> | 2015-08-02 14:06:02 +0200 |
---|---|---|
committer | Pep TurrĂ³ Mauri <pep@redhat.com> | 2015-08-02 14:08:51 +0200 |
commit | 8e04a1650d54afb813f9b48b9deaa76b1aab3903 (patch) | |
tree | c43f7f116778d4d06a8d8a0a0fc5dd0e01388931 /roles | |
parent | 3c2893290640865cce15f6093a9ab2f11c294acd (diff) | |
download | openshift-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')
-rw-r--r-- | roles/rhel_subscribe/tasks/enterprise.yml | 5 |
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" |