# Failed to create temporary directory

**URL:** <https://forum.ansible.com/t/failed-to-create-temporary-directory/35375>\
**Category:** Ansible Project\
**Created:** [June 18, 2021, 7:41pm UTC](https://forum.ansible.com/t/failed-to-create-temporary-directory/35375 "2021-06-18T19:41:25Z")\
**Posts on this page:** 2\
**Page:** 3

<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 19, 2021, 4:07pm UTC](https://forum.ansible.com/t/failed-to-create-temporary-directory/35375/41 "2021-06-19T16:07:47Z")

</div>

I have made changes in inventory file like added network\_cli as connection type and now the ping is working fine

---

<div class="post-metadata">

**Author:** ![lloyd\_noble](https://avatars.discourse-cdn.com/v4/letter/l/ea666f/32.png) [@lloyd\_noble](https://forum.ansible.com/u/lloyd_noble)\
**Post date:** [June 3, 2022, 8:03am UTC](https://forum.ansible.com/t/failed-to-create-temporary-directory/35375/42 "2022-06-03T08:03:49Z")

</div>

I am having the exact error while try to ping my windows machine form ansible automation platform template

Can you let me know what was the fix here i see my ansible.cnfg file has the temp folder specified

{  
“unreachable”: true,  
“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-1654237550.361781-26-26236287869257`" && echo ansible-tmp-1654237550.361781-26-26236287869257="`echo ~/.ansible/tmp/ansible-tmp-1654237550.361781-26-26236287869257`" ), exited with result 1”,  
“changed”: false  
}

[Previous page](https://forum.ansible.com/t/failed-to-create-temporary-directory/35375.md?page=2)
