"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.
On Friday, August 16, 2024 at 6:42:35 AM UTC-4 Aamir Mansoori wrote:
> 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
> }
>
>
>
--
You received this message because you are subscribed to the Google Groups
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/ansible-project/562f3964-dafa-4789-97ff-c1fe67d59607n%40googlegroups.com.