Windows Host Issue: Consider changing the remote tmp path in ansible.cfg to a path rooted in

48 views
Skip to first unread message

Mohammed Alnajdi

unread,
Dec 25, 2020, 5:39:28 PM12/25/20
to Ansible Project
Greeting Guys,

I am using Ansible 2.9.6 from a Debian machine and i am trying to run the ping_win module
on a windows target host but i am presented with this error.

"""
 "msg": "Authentication or permission failure. 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\". Failed command was: ( umask 77 && mkdir -p \"` echo /tmp/.ansible-abc/ansible-tmp-1608935561.4827693-223757110227446 `\" && echo ansible-tmp-1608935561.4827693-223757110227446=\"` echo /tmp/.ansible-abc/ansible-tmp-1608935561.4827693-223757110227446 `\" ), exited
with result 1",
    "unreachable": true
}
"""

Even thought i am able to ssh to the windows host fine by running
`ssh <ip-of-the-server>`

Any help is appreciated.

John Veliss

unread,
Dec 25, 2020, 7:21:58 PM12/25/20
to ansible...@googlegroups.com
What authentication are you using?

--
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/ff28f3ff-c8db-4057-ad85-81738297907fn%40googlegroups.com.

Mohammed Alnajdi

unread,
Dec 25, 2020, 7:36:03 PM12/25/20
to Ansible Project

John Veliss

unread,
Dec 25, 2020, 7:44:33 PM12/25/20
to ansible...@googlegroups.com
Does it work if you use ntml or kerberos auth

Mohammed Alnajdi

unread,
Dec 25, 2020, 7:49:44 PM12/25/20
to Ansible Project
i am using openssh not winrm. I am not sure if i can use NTLM or kerberos with openssh.

Mohammed Alnajdi

unread,
Dec 26, 2020, 4:27:51 AM12/26/20
to Ansible Project
Okay following the Microsoft official openssh docs on how to install it made it work for me.
Reply all
Reply to author
Forward
0 new messages