connecting to windows machine from linux through Ansible and getting timedout exception.

getting a connection timeout, implying the host wasn’t reachable

can someone help! working with Ansible and windows environment.

Lots of possible causes for this.
Can you connect via remote desktop to the host?
Did you run the

 ConfigureRemotingForAnsible.ps1

powershell script on the windows host?

Check you have a route to the windows host from your ansible controller. (ping, traceroute).
Check you can resolve the hostname of windows hosts from ansible controller too.

Also make sure you have configured your inventory/ group_vars for your windows hosts: http://docs.ansible.com/ansible/intro_windows.html#inventory

Hope the above helps,

Jon