As Jon said, first port of call is to read the windows documentation. When I started I also read the best practise guide here - http://docs.ansible.com/ansible/playbooks_best_practices.html - This contains the recommended file structure of your ansible setup.
My group_vars is at the same level as the hosts file. So my hosts file is /etc/ansible/hosts and my groups_vars are all located in /etc/ansible/group_vars. In 1.9 my windows creds are setup like below (with ansible_ssh_) ansible_ssh_user: ansible_ssh_pass: ansible_ssh_port: 5986 ansible_connection: winrm # The following is necessary for Python 2.7.9+ when using default WinRM self-signed certificates: ansible_winrm_server_cert_validation: ignore Also I configure WinRM on the windows hosts for remote powershelling. In the windows guide there's a link to the ps1 script to run on your windows hosts to get you started - https://github.com/ansible/ansible/blob/devel/examples/scripts/ConfigureRemotingForAnsible.ps1 On Wednesday, February 3, 2016 at 11:47:26 PM UTC, Kiran wrote: > > I wonder why it is trying to connect via SSH and not via the username and > password. > -- 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/16a55871-e2a4-4c73-838a-2b96da503bb4%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.