need playbook for disabling all redhat repo and only to have enabled my local repo in yum and it should done according to OS version.

Hi,

In my environment i’m creating setup for patching, before patching i’m planning to disable redhat repo, since we have own local repo, so below few lines are copied from other source, but not working properly. please share if anyone already had some setup.

The main intention is to disable all repo’s and enable my local repo according to OS version.

Repository details:-
RHEL6-Server-WDC
RHEL7-Server-WDC

OS version:-
RHEL 6 & 7

Can someone please share your ideas about my requirement!

Thanks,
Deepan M