The error states it's trying to use ssh so you are missing some configuration entries from the windows documentation page (http://docs.ansible.com/ansible/intro_windows.html). One of the entries would be:
ansible_connection: winrm On Tuesday, August 9, 2016 at 4:00:43 PM UTC-4, Anfield wrote: > > Trying to connect from Ansible server to windows host and getting > connection errors > > [root@localhost ansible]# ansible -i hosts -m ping all > 10.10.128.0 | UNREACHABLE! => { > "changed": false, > "msg": "Failed to connect to the host via ssh.", > "unreachable": true > > -Configured windows.yml, added the windows host in the ansible hosts file, > and can ping both machines from each other. Also ran the powershell script > on the windows box > > Is there something I am missing? > -- You received this message because you are subscribed to the Google Groups "Ansible Project" group. To unsubscribe from this group and stop receiving emails from it, send an email to ansible-project+unsubscr...@googlegroups.com. To post to this group, send email to ansible-project@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/344e6802-0d8a-4f23-a800-b477c9b649f2%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.