kerberos: Bad HTTP response returned from server. Code 500

Posted on

Recently we have upgraded our virtual environment ansible version to 2.9.15. From then while we are trying to connect to windows systems from ansible we are getting below error for few hosts, while we are able to connect to some windows hosts.


"msg": "kerberos: Bad HTTP response returned from server. Code 500"


Upon checking those windows hosts we got some differences in their winrm config service file like below.
"AllowUnencrypted = false" ,from those throwing error.
On the other hand ,"AllowUnencrypted = true" from the hosts to which we are able to connect.

Can anyone please help us in resolving the issue?

Note: we were able to connect to all windows hosts before upgrade(ansible 2.8.3) irrespective of "AllowUnencrypted" value.

Responses