Monday, June 17, 2019

AnsibleError: Unable to create local directories(/home/ubuntu/.ansible/tmp)


Ansible Error: 

AnsibleError: Unable to create local directories(/home/ubuntu/.ansible/tmp): [Errno 13] Permission denied: '/home/ubuntu/.ansible/tmp'

When I do ls -al I see the .ansible directory is owned by root. 

drwx------  3 root   root       4096 Jun 14 09:09 .ansible

So either run Ansible using sudo 
 OR 
Change permissions of this directory to allow the logged in user to create files. 

No comments:

Post a Comment