# changing remote\_tmp from the playbook

**URL:** <https://forum.ansible.com/t/changing-remote-tmp-from-the-playbook/18478>\
**Category:** Ansible Project\
**Created:** [June 11, 2015, 7:01pm UTC](https://forum.ansible.com/t/changing-remote-tmp-from-the-playbook/18478 "2015-06-11T19:01:11Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Olivier\_Lauret](https://avatars.discourse-cdn.com/v4/letter/o/b3f665/32.png) [@Olivier\_Lauret](https://forum.ansible.com/u/Olivier_Lauret)\
**Post date:** [June 11, 2015, 7:01pm UTC](https://forum.ansible.com/t/changing-remote-tmp-from-the-playbook/18478/1 "2015-06-11T19:01:11Z")

</div>

Hello,

I have an issue with the remote\_tmp parameter from the ansible.cfg that I would like to change from the playbook task.

The problem I have is the way I am connecting to the servers, with the different type of users. Here are some example

Most of the connections:  
GenericUserA/AnsibleServer ====(ssh)====\>connecting with GenericUserA on server1  
GenericUserA cannot use su command for security reasons as it is a generic user  
GenericUserA’s home folder on server1 is /opt/app1  
Some connections:  
GenericUserA/AnsibleServer ====(ssh)====\>connecting with SpecificUserB on server1  
SpecificUserB can use su command as root  
SpecificUserB, like all specific users, don’t have a home folder on the server and default to the root.

When using SpecificUserB, I cannot create .ansible in the root folder, so I have set the remote\_tmp to /tmp. when running a playbook, /tmp/.ansible is created with SpecificUserB permission. THe problem is when I want to run another playbook with GenericUserA, it fails as GenericUserA create anything in /tmp/.ansible. Same problem with any other SpecificUsers.

Any idea on how to solve this issue?

Regards,  
Olivier
