Assuming the username and password are correct and WinRM is correctly configured with the ports opened, you can try to use ntlm for the transport and post those results/errors. If so then we know the setup, at a basic level is working.
Next, you’ll need to ensure all the prerequisite steps have been completed to ensure the entire environment is configured correctly and reply with the results/errors.
Hi @maxmin , thank you for sharing your own solution. I’m tagging your last comment as the solution, even if you solved it yourself
A couple of comments to help you in the future:
I would recommend you upgrade Ansible. The version 2.10 you are using is at end of life.
I just edited your posts to include the “code blocks” tag, so the scripts show in a box, and makes it clear and keeps format. In case you use email, it’s 3 single ticks to open and to close like this: