Remote host throwing error saying "Permission Denied" - Ansible

0 votes

I'm trying to sun something from my remote host but it throws the following error:

"/usr/bin/python: can't open file '/home/ludd/.ansible/tmp/ansible-tmp-1466162346.37-16304304631529/zypper'

Why do i get this error and how do I solve it?

Obvious solution:

run this command as a root user with sudo permissions

Ofcourse I've already tried this but no luck.

Jan 16 in Ansible by Patrick
288 views

1 answer to this question.

0 votes

Hey @Patrick,

Change the path of Ansible's remote_tmp directory in the configuration file.

Something like this:

/etc/ansible/ansible.cfg
remote_tmp      = /tmp/${USER}/ansible

This should, hope it helps:)

answered Jan 16 by Cerci

Related Questions In Ansible

0 votes
1 answer
0 votes
1 answer
0 votes
1 answer
+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
216 views
0 votes
1 answer