I just experienced the same issue. ansible doesn't seem to read group_vars, but ansible-playbook does. so my group_vars values are not used.
was this ever solved? thanks On Tuesday, 21 October 2014 15:56:09 UTC-4, Bob Tanner wrote: > > Following the documentation at http://docs.ansible.com/intro_windows.html. > > I setup an inventory file and group windows. > I setup a group_vars for for windows. > > $ cat customer/windows-testing > [windows] > appserv.int.domain.com > > $ cat group_vars/windows.yml > ansible_ssh_user: Administrator > ansible_ssh_pass: "Password" > ansible_ssh_port: 5986 > ansible_connection: winrm > > $ whoami > basictheprogram > > $ ansible windows -i customers/windows-testing -m win_ping -vvvv > > <appserv.int.domain.com> ESTABLISH CONNECTION FOR USER: basictheprogram > on PORT 22 TO appserv.int.domain.com > appserv.int.domain.com | FAILED => FAILED: Authentication failed. > > I don't understand why ansible is attempting to ssh (port 22) as > basictheprogram (me) installed of winrm to port 5986 as Administrator. > > $ ansible --version > ansible 1.8 (devel 4c86bd3ca6) last updated 2014/10/21 12:09:14 (GMT -500) > lib/ansible/modules/core: (detached HEAD cb69744bce) last updated > 2014/10/07 14:28:03 (GMT -500) > lib/ansible/modules/extras: (detached HEAD 8a4f07eecd) last updated > 2014/10/07 14:28:06 (GMT -500) > v2/ansible/modules/core: (detached HEAD cb69744bce) last updated > 2014/10/07 14:28:11 (GMT -500) > v2/ansible/modules/extras: (detached HEAD 8a4f07eecd) last updated > 2014/10/07 14:28:15 (GMT -500) > configured module search path = None > -- 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 [email protected]. To post to this group, send email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/d73a46cc-aae9-4974-ba57-aab6770c5686%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
