Problem:
Attempting to run a Ansible playbook from Foreman fails with:
[WARNING]: Unable to set correct type for configuration entry:
DEFAULT_LOCAL_TMP
PLAY [joni-halder.lab.beer.town] ***********************************************
TASK [Gathering Facts] *********************************************************
An exception occurred during task execution. To see the full traceback, use -vvv. The error was: OSError: [Errno 13] Permission denied: '~'
fatal: [joni-halder.lab.beer.town]: FAILED! => {"msg": "Unexpected failure during module execution.", "stdout": ""}
to retry, use: --limit @/tmp/d20180604-14227-etndem/foreman-playbook-6bfa0e37-2659-4c54-a08e-d768bc807be0.retry
PLAY RECAP *********************************************************************
joni-halder.lab.beer.town : ok=0 changed=0 unreachable=0 failed=1
Exit status: 2
Expected outcome:
Ansible playbook to work.
Foreman and Proxy versions:
foreman - 1.17
proxy - 1.17
Foreman and Proxy plugin versions:
rubygem-smart_proxy_ansible-2.0.2-1.fm1_17.el7.noarch
tfm-rubygem-smart_proxy_dynflow_core-0.1.10-2.fm1_17.el7.noarch
rubygem-smart_proxy_remote_execution_ssh-0.1.5-1.el7.noarch
tfm-rubygem-foreman_ansible-2.0.1-1.fm1_17.el7.noarch
rubygem-smart_proxy_ansible-2.0.2-1.fm1_17.el7.noarch
ansible-2.5.3-1.el7.noarch
tfm-rubygem-foreman_ansible_core-2.0.2-1.fm1_17.el7.noarch
Other relevant data:
The ansible command works fine from cli. I only get this error when ran from Foreman.