# Error executing ansible playbook to remote server

**URL:** <https://forum.ansible.com/t/error-executing-ansible-playbook-to-remote-server/33985>\
**Category:** Ansible Developer\
**Created:** [October 7, 2020, 9:58pm UTC](https://forum.ansible.com/t/error-executing-ansible-playbook-to-remote-server/33985 "2020-10-07T21:58:10Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Oscar\_Rojas](https://avatars.discourse-cdn.com/v4/letter/o/8797f3/32.png) [@Oscar\_Rojas](https://forum.ansible.com/u/Oscar_Rojas)\
**Post date:** [October 7, 2020, 9:58pm UTC](https://forum.ansible.com/t/error-executing-ansible-playbook-to-remote-server/33985/1 "2020-10-07T21:58:10Z")

</div>

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  
}

---

<div class="post-metadata">

**Author:** ![Debabrat\_panda](https://avatars.discourse-cdn.com/v4/letter/d/839c29/32.png) [@Debabrat\_panda](https://forum.ansible.com/u/Debabrat_panda)\
**Post date:** [October 9, 2020, 3:11am UTC](https://forum.ansible.com/t/error-executing-ansible-playbook-to-remote-server/33985/2 "2020-10-09T03:11:38Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![Wilber\_H](https://avatars.discourse-cdn.com/v4/letter/w/df788c/32.png) [@Wilber\_H](https://forum.ansible.com/u/Wilber_H)\
**Post date:** [May 5, 2021, 6:11pm UTC](https://forum.ansible.com/t/error-executing-ansible-playbook-to-remote-server/33985/3 "2021-05-05T18:11:01Z")

</div>

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)?
