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.

 [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...
Jan 13 in Ansible by Lara
197 views

1 answer to this question.

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,810 points
144 views
0 votes
2 answers
+13 votes
2 answers

Git management technique when there are multiple customers and need multiple customization?

Consider this - In 'extended' Git-Flow, (Git-Multi-Flow, ...READ MORE

answered Mar 26, 2018 in DevOps & Agile by DragonLord999
• 8,380 points
110 views
0 votes
1 answer
0 votes
1 answer
0 votes
1 answer