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

1 answer to this question.

Your answer

Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.
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 by Cerci

Related Questions In Ansible

0 votes
1 answer
0 votes
1 answer
0 votes
1 answer
+13 votes
2 answers
0 votes
1 answer

© 2018 Brain4ce Education Solutions Pvt. Ltd. All rights Reserved.
"PMP®","PMI®", "PMI-ACP®" and "PMBOK®" are registered marks of the Project Management Institute, Inc. MongoDB®, Mongo and the leaf logo are the registered trademarks of MongoDB, Inc.