Hello Everyone,

       First time poster here. By the way I am just now learning this. I am having issues with a playbook I am trying to run and I get this after the

This is what I ran -> ansible-playbook -i /etc/ansible/pi_hosts pi_update.yml

This was the result:

TASK [Update apt repo and cache on all Debian/Ubuntu boxes] ************************* fatal: [ohsrv01.cfs.loc]: FAILED! => {"changed": false, "msg": "Failed to lock apt for exclusive operation: Failed to lock directory /var/lib/apt/lists/: E:Could not open lock file /var/lib/apt/lists/lock - open (13: Permission denied)"} fatal: [octopi.cfs.loc]: FAILED! => {"changed": false, "msg": "Failed to lock apt for exclusive operation: Failed to lock directory /var/lib/apt/lists/: E:Could not open lock file /var/lib/apt/lists/lock - open (13: Permission denied)"}

Not sure what's going on because I am using a legal user but do I need to put a provision for *sudo *and run the commands with sudo?

Thanks guys I appreciate your help,

--
*Michael A Cooper*
Linux Certified / Docker Certified
http://www.coopfire.com

--
You received this message because you are subscribed to the Google Groups "Ansible 
Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/3e1e0f3f-8ab5-f861-70a1-e8574e12e46a%40gmail.com.

Reply via email to