I bumped into Failed to lock apt for exclusive operation issue: https://github.com/geerlingguy/ansible-role-apache/issues/50
Failed to lock apt for exclusive operation
I posted a lot of details in Gi
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:
root
become: yes
Now everything works as intended.