can winrm communicate via http 5985?
my group[_vars file
ansible_user: ‘administrator’
ansible_password: ‘xxxxxx’
ansible_port: 5985
ansible_connection: ‘winrm’
ansible_winrm_server_cert_validation: ‘ignore’
ansible_winrm_transport: ‘ntlm’
but getting it failed on one win host
10.200.1.31 | UNREACHABLE! => {
“changed”: false,
“msg”: “ntlm: the specified credentials were rejected by the server”,
“unreachable”: true
}
10.50.1.231 | SUCCESS => {
“changed”: false,
“ping”: “pong”
}
jborean
(Jordan Borean)
May 15, 2020, 7:58pm
2
it only works with https over 5986
if I change it to ntlm
ansible_user: ‘administrator’
ansible_password: ‘xxxxxxx’
ansible_port: 5986
ansible_connection: ‘winrm’
ansible_winrm_server_cert_validation: ‘ignore’
ansible_winrm_transport: ‘ntlm’
then it works
its not a firewall issue either since I can telnet to port 5985 on the windows machine
jborean
(Jordan Borean)
May 15, 2020, 9:48pm
4
If only 5986 is working then it sounds like message encryption is being disabled for NTLM or is just unavailable (older libraries are installed). If you already have HTTPS working then you should just continue to use that. It provides more security benefits especially compared to NTLM over port 5985.