Error executing ansible playbook to remote server

I am trying to run an ansible playbook to a remote server. The container is installed but after a moment I get this message.

fatal: [onlyoffice]: UNREACHABLE! => {
“changed”: false,
“msg”: “Failed to create temporary directory.In some cases, you may have been able to authenticate and did not have permissions on the target directory. Consider changing the remote tmp path in ansible.cfg to a path rooted in "/tmp", for more error information use -vvv. Failed command was: ( umask 77 && mkdir -p "echo ~/.ansible/tmp"&& mkdir "echo ~/.ansible/tmp/ansible-tmp-1602104586.0765035-15713-7057039692003" && echo ansible-tmp-1602104586.0765035-15713-7057039692003="echo ~/.ansible/tmp/ansible-tmp-1602104586.0765035-15713-7057039692003" ), exited with result 1”,
“unreachable”: true
}

It seems to be a permission problem for your Linux user

  1. As suggested check your Linux user privilege.
  2. Check SSH to your host.

Is there a way to prevent Ansible from creating the temporary directory on the target machine?
If not, is there a way to force the target temporary directory to be created on the local machine (in case the target machine is a terminal server without Python)?