Ansible 1.9.4 : Failed to lock apt for exclusive operation

Question:

I bumped into Failed to lock apt for exclusive operation issue:
https://github.com/geerlingguy/ansible-role-apache/issues/50

I posted a lot of details in GitHub.

I googled a lot of “Failed to lock apt for exclusive operation” Ansible complaints, but no simple answer. Any help?

Answer:

I’m also getting this error, while setting up a couple of new boxes. I’m connecting as root, so I didn’t think it was necessary, but it is:

Now everything works as intended.

Leave a Reply