I've installed Ansible on Oracle's Virtual Machine and mounted /dev/sr0 and configured system.repo under /etc/yum.repos.d as below.
[SYSTEM]
name=rhel6
baseurl=file:///mnt
gpgcheck=0
enabled=1
But the yum command isn't working, I get this error;
Error: Cannot retrieve metalink for repository: epel. Please verify its path and try again
I made a few chnages and then I got another error;
Existing lock /var/run/yum.pid: another copy is running as pid 2448. Another app is currently holding the yum lock; waiting for it to exit...