In order to connect remote windows machine from linux we should install and setup winrm ansible module.
First of all as the ansible engine doesnt have winrm module by default on linux, we should install Pywinrm module manually on linux machine.
-pip install pywinrm
Then we should enable winrm in remote windows machine. (we also could use other winrm commands writen in above in order to enable connection and other settings.)
-winrm quickconfig -q
after that we could check connection from our local linux machine to remote windows machine based on our inventory file.
-ansible all -i inventory -m win_ping
You should get a message like this :
192.168.1.11 | SUCCESS { "changed" : false, "ping" : "pong" }
That's All.