Ansible is giving below error

92 views
Skip to first unread message

Aamir Mansoori

unread,
Aug 16, 2024, 6:42:35 AM8/16/24
to Ansible Project
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
}


Dick Visser

unread,
Aug 16, 2024, 7:40:47 AM8/16/24
to ansible...@googlegroups.com
And your question is....?

--
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 ansible-proje...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/d798deed-075a-4f99-ba0f-bdfdd8797383n%40googlegroups.com.

LnxGnome

unread,
Aug 18, 2024, 7:25:59 PM8/18/24
to Ansible Project
"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.
Reply all
Reply to author
Forward
0 new messages