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
4,964 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, 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
15,864 views
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
4,036 views
+2 votes
1 answer
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP