Wednesday, August 7, 2019

Ansible on windows using winrm

https://www.paulligocki.com/how-to-setup-winrm-in-a-workgroup-non-domain-environment/
https://groups.google.com/forum/#!topic/ansible-project/UrxPekgtBWQ

--
https://4sysops.com/archives/enable-powershell-remoting-on-a-standalone-workgroup-computer/

https://groups.google.com/forum/#!topic/ansible-project/t4Y_J-0KYrY

If you have configured WinRM using the ConfigureRemotingForAnsible.ps1 script I would highly advise you to use HTTPS over port 5986 instead of HTTP. For one HTTP is sent over in cleartext and your credentials can be seen by anyone listening in. The other warning you are getting is because the cert validation variable is not correct, it should be ansible_winrm_server_cert_validation.

Change your inventory to be

ansible_user: ansibleadmin
ansible_password: Passw0rd
ansible_port: 5986
ansible_connection: winrm
ansible_winrm_transport: ntlm
ansible_winrm_server_cert_validation: ignore

But for me, it is working with port:5985 only

No comments:

Post a Comment