Hello,
Our UNIX administrators are trying to root lock all home directories (/export/home/), including the user which Ansible uses (username: test).
As such, when I send an Ansible command it fails due to the inability to create this “cp” folder under $HOME/.ansible.
I have set remote_tmp to some other directory but this seems to not have anything to do with this “cp” folder.
Is there a way to overrride where this “cp” directory goes?
Note: I am not doing anything with sudo, just basic central host → remote host connection.
Example:
central:/app/test/ansible> /usr/bin/ansible-playbook -i env.poc playbooks/test_connection.yml -vvv
PLAY [test] *****************************************************************
TASK: [common | check_in] *****************************************************
fatal: [remoteA] => Could not make dir /export/home/test/.ansible/cp: [Errno 13] Permission denied: ‘/export/home/test/.ansible’
fatal: [remoteB] => Could not make dir /export/home/test/.ansible/cp: [Errno 13] Permission denied: ‘/export/home/test/.ansible’
Thanks,
John