# ansible.builtin.copy temp file

**URL:** <https://forum.ansible.com/t/ansible-builtin-copy-temp-file/38801>\
**Category:** Ansible Project\
**Created:** [June 2, 2024, 8:40pm UTC](https://forum.ansible.com/t/ansible-builtin-copy-temp-file/38801 "2024-06-02T20:40:44Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Edgars\_Krievins](https://avatars.discourse-cdn.com/v4/letter/e/ce73a5/32.png) [@Edgars\_Krievins](https://forum.ansible.com/u/Edgars_Krievins)\
**Post date:** [June 2, 2024, 8:40pm UTC](https://forum.ansible.com/t/ansible-builtin-copy-temp-file/38801/1 "2024-06-02T20:40:44Z")

</div>

Hi,

I’m attempting to copy a 1GB file from the control node to managed nodes using the ansible.builtin.copy module. The destination directory is not in the home directory, but I’ve noticed that Ansible creates temporary files at ~/.ansible/tmp/ansible-tmp-\*. Unfortunately, I have limited resources in the /home directory, and increasing its size isn’t an option. Is it possible to change the temporary file location for the play/task?

Best,  
Edgars.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/ansible/original/1X/1882d9a01da5d8996a862359b0913cc568a39b84.svg) [@system](https://forum.ansible.com/u/system)\
**Post date:** [June 3, 2024, 1:56pm UTC](https://forum.ansible.com/t/ansible-builtin-copy-temp-file/38801/2 "2024-06-03T13:56:09Z")

</div>

The shell plugin controls that:  
[https://docs.ansible.com/ansible/latest/collections/ansible/builtin/sh\_shell.html#parameter-remote\_tmp](https://docs.ansible.com/ansible/latest/collections/ansible/builtin/sh_shell.html#parameter-remote_tmp)
