How you're doing it would seem to be the obvious way to me but you'll need to change the connection first...
"In order to connect to your Windows hosts properly, you need to make sure that you put in ansible_connection=winrm in the host vars <http://docs.ansible.com/ansible/latest/user_guide/intro_inventory.html#host-variables>section of your inventory file so that Ansible Engine doesn’t just keep trying to connect to your Windows host via SSH. " https://www.ansible.com/blog/connecting-to-a-windows-host -- You received this message because you are subscribed to the Google Groups "Ansible Development" group. To unsubscribe from this group and stop receiving emails from it, send an email to ansible-devel+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.