# Ansible is giving below error

**URL:** <https://forum.ansible.com/t/ansible-is-giving-below-error/38848>\
**Category:** Ansible Project\
**Created:** [August 16, 2024, 7:15am UTC](https://forum.ansible.com/t/ansible-is-giving-below-error/38848 "2024-08-16T07:15:52Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Aamir](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/aamir/32/5623_2.png) [@Aamir](https://forum.ansible.com/u/Aamir)\
**Post date:** [August 16, 2024, 7:15am UTC](https://forum.ansible.com/t/ansible-is-giving-below-error/38848/1 "2024-08-16T07:15:52Z")

</div>

Hello All,

I am getting below error while running the ansible consul1 -m ping on my debian controller and host.

consul1 | 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 /home/ansible/.ansible/tmp`"&& mkdir "`echo /home/ansible/.ansible/tmp/ansible-tmp-1723792189.0846684-1866486-106472010969667`" && echo ansible-tmp-1723792189.0846684-1866486-106472010969667="`echo /home/ansible/.ansible/tmp/ansible-tmp-1723792189.0846684-1866486-106472010969667`" ), exited with result 127”,  
“unreachable”: true  
}

---

<div class="post-metadata">

**Author:** ![dnmvisser](https://avatars.discourse-cdn.com/v4/letter/d/8e8cbc/32.png) [@dnmvisser](https://forum.ansible.com/u/dnmvisser)\
**Post date:** [August 16, 2024, 11:40am UTC](https://forum.ansible.com/t/ansible-is-giving-below-error/38848/2 "2024-08-16T11:40:15Z")

</div>

And your question is…?

---

<div class="post-metadata">

**Author:** ![Lnx\_Gnome](https://avatars.discourse-cdn.com/v4/letter/l/96bed5/32.png) [@Lnx\_Gnome](https://forum.ansible.com/u/Lnx_Gnome)\
**Post date:** [August 18, 2024, 11:25pm UTC](https://forum.ansible.com/t/ansible-is-giving-below-error/38848/3 "2024-08-18T23:25:59Z")

</div>

“Failed to create temporary directory” would suggest that “/home/ansible” either doesn’t exist or is not owned by the user running the command on consul1.
