message saying "Another app is currently holding the yum lock; waiting for it to exit..." when trying to install Ansible

0 votes

I've installed Ansible on Oracle's Virtual Machine and mounted /dev/sr0 and configured system.repo under /etc/yum.repos.d as below.


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/ another copy is running as pid 2448. Another app is currently holding the yum lock; waiting for it to exit...
Jan 13 in Ansible by Lara

1 answer to this question.

Your answer

Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.
0 votes

Follow these steps;

  • Install epel repo properly, looks like it hasn't been installed correctly
yum search epel
yum install epel-release
  • Restart your yum service:

service yum restart
  • Find the ansible package:

yum search ansible
  • And then install ansible

yum install ansible

answered Jan 13 by Anjali

Related Questions In Ansible

0 votes
1 answer
0 votes
1 answer

Running ansible command on a single server when it is deployed to multiple servers

You can try the run_once attribute: Example from ...READ MORE

answered Jun 13, 2018 in Ansible by DareDev
• 6,710 points
0 votes
2 answers
+13 votes
2 answers
0 votes
1 answer
0 votes
1 answer

© 2018 Brain4ce Education Solutions Pvt. Ltd. All rights Reserved.
"PMP®","PMI®", "PMI-ACP®" and "PMBOK®" are registered marks of the Project Management Institute, Inc. MongoDB®, Mongo and the leaf logo are the registered trademarks of MongoDB, Inc.