ansible.builtin.copy temp file

60 views
Skip to first unread message

Edgars Krieviņš

unread,
Jun 3, 2024, 9:10:05 AMJun 3
to Ansible Project
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.

Brian Coca

unread,
Jun 3, 2024, 9:56:50 AMJun 3
to ansible...@googlegroups.com
The shell plugin controls that:
https://docs.ansible.com/ansible/latest/collections/ansible/builtin/sh_shell.html#parameter-remote_tmp


--
----------
Brian Coca (he/him/yo)

Reply all
Reply to author
Forward
0 new messages