Ansible is giving below error

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
}

And your question is…?

“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.