$ ansible windows -i inventory.yml -m win_ping -vvvv
<192.168.2.3> ESTABLISH WINRM CONNECTION FOR USER: ansible on PORT 5986 TO 192.168.2.3
<192.168.2.3> WINRM CONNECT: transport=plaintext endpoint=https://192.168.2.3:5986/wsman
<192.168.2.3> WINRM CONNECTION ERROR: 401 Unauthorized.
192.168.2.3 | FAILED => 401 Unauthorized.
ansible all -i windows.yml -m win_ping -vvvv
[all]192.168.50.4
[all:vars]ansible_user="vagrant"ansible_password="vagrant"ansible_port="5985"ansible_connection="winrm"<192.168.50.4> ESTABLISH WINRM CONNECTION FOR USER: aas on PORT 5986 TO 192.168.50.4<192.168.50.4> WINRM CONNECT: transport=plaintext endpoint=https://192.168.50.4:5986/wsman<192.168.50.4> WINRM CONNECTION ERROR: 401 Unauthorized.