the remote target box haven't authority to create temp log for playbook

Hi,

when playbook cli runs, it fails as below:

fatal: [10.170.115.221]: FAILED! => {“failed”: true, “msg”: “ERROR! failed to transfer file to /flash/home/cde/ansible-tmp-1455696872.88-178149562002428/expect:\n\nlost connection\n”}

That’s due to run the playbook through ssh user/password, but the user is not root user so that could not create temp file on remote box.
Is there any other config to abandon this temp file that do not return this error message?

BRs
Jay

Normally temp files get created in the remote user’s own home, these files are the module to execute, its arguments and possibly other resources. It is rare that you need root privileges to create files in a user’s own home.

if you can use pipelining, this avoids the creation of files, but it does not work well with prompts.

You can also set the directory used for remote temporary files (remote_tmp in ansible.cfg and other ways).