# Async Setting Variable

**URL:** <https://forum.ansible.com/t/async-setting-variable/22464>\
**Category:** Ansible Project\
**Created:** [September 2, 2016, 8:46am UTC](https://forum.ansible.com/t/async-setting-variable/22464 "2016-09-02T08:46:27Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![captainbrexit](https://avatars.discourse-cdn.com/v4/letter/c/bcef8e/32.png) [@captainbrexit](https://forum.ansible.com/u/captainbrexit)\
**Post date:** [September 2, 2016, 8:46am UTC](https://forum.ansible.com/t/async-setting-variable/22464/1 "2016-09-02T08:46:27Z")

</div>

Hi,  
I run an Ansible playbook to install an application on a remote server. It takes time, so i use async/poll.  
The problem i have is that the remote server is running CIS hardened and noexec is set on /tmp.  
It looks like Ansible runs its checks from /tmp - which only work if i disable noexec.

Is there a setting where i can tell async to use another filesystem instead of /tmp ?

---

<div class="post-metadata">

**Author:** ![Brian\_Coca](https://avatars.discourse-cdn.com/v4/letter/b/6de8d8/32.png) [@Brian\_Coca](https://forum.ansible.com/u/Brian_Coca)\
**Post date:** [September 7, 2016, 2:36pm UTC](https://forum.ansible.com/t/async-setting-variable/22464/2 "2016-09-07T14:36:25Z")

</div>

Hi,

Ansible by default creates a tmp dir in the remote users’ home directory, if this is not possible (several reasons could cause this) it can fallback to /tmp. In all cases you can control which remote temp directory is used via the remote\_tmp setting in ansible.cfg or ANSIBLE\_REMOTE\_TMP environment variable.​
