[Server-devel] ansible and lan repos
Tim Moody
tim at timmoody.com
Mon Jan 13 16:10:06 EST 2014
I have created a repo server with lots of rpms organized into created repos for the case where I have no external internet connection. I sent an earlier email with the list to which I have added the /var/cache/yum from and install.
I can access these with, for example, yum --disablerepo=* --enablerepo=xsce0.5-xo4 --enablerepo=koji* install xxx.
But if I just use yum install xxx, which ansible will use, it errors out on the external repos that can not be reached. I would rather not have to edit every repo file to set enabled to 1 or 0. I suppose I could have two versions of /etc/yum.repos.d, but is there anything more elegant that can be done, such as telling ansible to use yum --disablerepo=* --enablerepo=xsce0.5-xo4 --enablerepo=koji* for yum?
Tim
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.laptop.org/pipermail/server-devel/attachments/20140113/d6020714/attachment.html>
More information about the Server-devel
mailing list