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, 2019 in Ansible by Patrick

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:

remote_tmp      = /tmp/${USER}/ansible

This should, hope it helps:)

answered Jan 16, 2019 by Cerci

Related Questions In Ansible

0 votes
1 answer

Error saying permission denied while running ansible playbook

Hey @Neha, add the following line to ...READ MORE

answered Feb 8, 2019 in Ansible by Amy
0 votes
1 answer
0 votes
1 answer
+15 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 27, 2018 in DevOps & Agile by DragonLord999
• 8,450 points
+2 votes
1 answer