Ansible doesn't use remote working directory from REX

Hi there, I’m trying to use Ansible and for various reasons, I end up deleting the home directory of the user which doesn’t please Ansible.
What surprised me is that Ansible isn’t using the foreman-rex-remote-working-directory option for its configuration.
Foreman REX uses /dev/shm, and indeed when I run a remote execution, I find the temporary files in /dev/shm.
However when I try to run ansible roles (just the default), temporary files are created in the home directory of the user configured for REX. (which I don’t want)

Modifying /etc/ansible/ansible.cfg doesn’t work. On the Smart proxy and foreman itself

Expected outcome:
I would like to be able to modify the equivalent of the ansible_remote_tmp variable to set it to /dev/shm.

Foreman and Proxy versions:

Foreman and Proxy plugin versions:
All smart-proxy are 1.22

|foreman-tasks| |0.15.5|


Thanks to aruzicka[m] for the help on IRC, you can modify the working directory by modifying the /etc/foreman-proxy/ansible.cfg configuration and restarting the proxy :slight_smile:

That gives for me : with remote_tmp in /dev/shm

callback_whitelist = foreman
local_tmp = /tmp
host_key_checking = False
stdout_callback = yaml
remote_tmp = /dev/shm

url = https://master-repo.cplus
ssl_cert = /etc/foreman-proxy/foreman_ssl_cert.pem
ssl_key = /etc/foreman-proxy/foreman_ssl_key.pem
verify_certs = /etc/foreman-proxy/foreman_ssl_ca.pem