# failed to create directory in windows remote machine

**URL:** <https://forum.ansible.com/t/failed-to-create-directory-in-windows-remote-machine/33663>\
**Category:** Ansible Project\
**Tags:** windows\
**Created:** [August 24, 2020, 9:24am UTC](https://forum.ansible.com/t/failed-to-create-directory-in-windows-remote-machine/33663 "2020-08-24T09:24:43Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![P\_R\_Music\_video\_s](https://avatars.discourse-cdn.com/v4/letter/p/eb8c5e/32.png) [@P\_R\_Music\_video\_s](https://forum.ansible.com/u/P_R_Music_video_s)\
**Post date:** [August 24, 2020, 9:24am UTC](https://forum.ansible.com/t/failed-to-create-directory-in-windows-remote-machine/33663/1 "2020-08-24T09:24:43Z")

</div>

hi all  
please tell the solution for this problem

“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 /tmp/.ansible-${ad_prajwalh}/tmp`"&& mkdir "`echo /tmp/.ansible-${ad_prajwalh}/tmp/ansible-tmp-1598260125.33-15226-114079856555538`" && echo ansible-tmp-1598260125.33-15226-114079856555538="` echo /tmp/.ansible-${ad\_prajwalh}/tmp/ansible-tmp-1598

---

<div class="post-metadata">

**Author:** ![nitesh\_shet](https://avatars.discourse-cdn.com/v4/letter/n/7ea924/32.png) [@nitesh\_shet](https://forum.ansible.com/u/nitesh_shet)\
**Post date:** [June 18, 2021, 7:49pm UTC](https://forum.ansible.com/t/failed-to-create-directory-in-windows-remote-machine/33663/2 "2021-06-18T19:49:10Z")

</div>

Hi experts,  
i am also facing the same problem, can anyone please provide solution to this?

Thanks,  
Nitesh

---

<div class="post-metadata">

**Author:** ![Antony\_Stone](https://avatars.discourse-cdn.com/v4/letter/a/4491bb/32.png) [@Antony\_Stone](https://forum.ansible.com/u/Antony_Stone)\
**Post date:** [June 18, 2021, 7:52pm UTC](https://forum.ansible.com/t/failed-to-create-directory-in-windows-remote-machine/33663/3 "2021-06-18T19:52:59Z")

</div>

The same problem?

The subject of this thread is "failed to create directory in windows remote  
machine", whereas you just wrote in another thread that "my controller node is  
of centos7 and remote is debian", so I don't think you are working with a  
Windows remote system?

Antony.

---

<div class="post-metadata">

**Author:** ![nitesh\_shet](https://avatars.discourse-cdn.com/v4/letter/n/7ea924/32.png) [@nitesh\_shet](https://forum.ansible.com/u/nitesh_shet)\
**Post date:** [June 18, 2021, 8:29pm UTC](https://forum.ansible.com/t/failed-to-create-directory-in-windows-remote-machine/33663/4 "2021-06-18T20:29:24Z")

</div>

Yes my controller node is of centos 7

---

<div class="post-metadata">

**Author:** ![Antony\_Stone](https://avatars.discourse-cdn.com/v4/letter/a/4491bb/32.png) [@Antony\_Stone](https://forum.ansible.com/u/Antony_Stone)\
**Post date:** [June 18, 2021, 8:35pm UTC](https://forum.ansible.com/t/failed-to-create-directory-in-windows-remote-machine/33663/5 "2021-06-18T20:35:39Z")

</div>

But your remote / target machine is not running Windows.

Antony..

---

<div class="post-metadata">

**Author:** ![nitesh\_shet](https://avatars.discourse-cdn.com/v4/letter/n/7ea924/32.png) [@nitesh\_shet](https://forum.ansible.com/u/nitesh_shet)\
**Post date:** [June 18, 2021, 8:38pm UTC](https://forum.ansible.com/t/failed-to-create-directory-in-windows-remote-machine/33663/6 "2021-06-18T20:38:31Z")

</div>

No, Don’t get confused with this thread because I used this thread so that I can get reply asap and the subject is also similar to what I have been to. So my controller node is running on centos and the host is on debian

---

<div class="post-metadata">

**Author:** ![Antony\_Stone](https://avatars.discourse-cdn.com/v4/letter/a/4491bb/32.png) [@Antony\_Stone](https://forum.ansible.com/u/Antony_Stone)\
**Post date:** [June 18, 2021, 8:42pm UTC](https://forum.ansible.com/t/failed-to-create-directory-in-windows-remote-machine/33663/7 "2021-06-18T20:42:10Z")

</div>

1. Please do not ask the same question in multiple threads.

2. Please do not hijack threads and ask a question which is not the same as  
what the thread was originally about.

3. Please abandon this thread and continue your question in the thread "Failed  
to create temporary directory".

Antony.

---

<div class="post-metadata">

**Author:** ![nitesh\_shet](https://avatars.discourse-cdn.com/v4/letter/n/7ea924/32.png) [@nitesh\_shet](https://forum.ansible.com/u/nitesh_shet)\
**Post date:** [June 18, 2021, 8:43pm UTC](https://forum.ansible.com/t/failed-to-create-directory-in-windows-remote-machine/33663/8 "2021-06-18T20:43:12Z")

</div>

I do remember this and follow the same in future
