I am running some tasks with delegate_to. When those tasks run, they use the same remote_tmp directory setup from the ansible.cfg.
However, due to permissions and directory size issues, I need to change the remote_tmp directory for tasks that I am using delegate_to for.
Example:
- name: Create Temp Dir
delegate_to: localhost
file:
path: “{{ my_temp_dir }}”
state: directory
I am using Ansible 2.3.2.
Thanks for any help!