Problem:
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-1.22.0-1.el7.noarch
Foreman and Proxy plugin versions:
All smart-proxy are 1.22
|foreman-tasks| |0.15.5|
|foreman_ansible||3.0.2|
|foreman_openscap||1.0.1|
|foreman_remote_execution||1.8.2|
|katello||3.12.0|
Thanks