Okay this is fixed.  The values assigned to the variables 
 "ansible_ssh_user" and "ansible_ssh_pass" must:

   1. Exactly match an account on the windows machine with admin privileges 
   (account must exist but need NOT be current active login)
   2. If you are using SSL and the value of 
   winrm/config/service/AllowUnencrypted is true (this is the default) the 
   values in ansible\group_vars\windows.yml must exactly match the username 
   and password that was submitted to generate the SSL web certificate. 
   
In my case I also had to append the computer name with the port number in 
the inventory like this

[windows]
ComputerName:5986 

(or 5985 for AllowUnedcrypted="true" type this command in powershell PS 
C:\winrm set winrm/config/service '@{AllowUnencrypted="true"}'

done.



On Wednesday, October 29, 2014 at 5:03:58 PM UTC-5, Michael Peters wrote:
>
> It will be the remote nodes. In lots of cases these are all the same 
> (lots of setups have the same management account with the same 
> credentials on the managed nodes). And if you need to specify per-host 
> variables for the remote nodes you can do that as well in your 
> inventory. 
>
> On Wed, Oct 29, 2014 at 5:58 PM, skinnedknuckles 
> <[email protected] <javascript:>> wrote: 
> > Details: 
> > Ansible 1.8 
> > CentOs 7 
> > Windows 7 (not a server os) 
> > 
> > Documentation specifies that for remote nodes running windows we add 
> these 
> > definitions to /etc/ansible/group_vars/windows.yml 
> > 
> > ansible_ssh_user: Administrator 
> > ansible_ssh_pass: SekritPasswordGoesHere 
> > ansible_ssh_port: 5986 
> > ansible_connection: winrm 
> > 
> > So does user and pass above refer to the local linux account on the 
> > management node or the local windows account on the remote node (windows 
> 7) 
> > or is it just part of ansible-vault or something else all together?  I 
> think 
> > it would have to be the management node account or else if you had 100 
> > remote nodes you would need 100 names and passwords.  Am I understanding 
> > this correctly?  Could someone clarify for me? 
> > 
> > -- 
> > 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] <javascript:>. 
> > To post to this group, send email to [email protected] 
> <javascript:>. 
> > To view this discussion on the web visit 
> > 
> https://groups.google.com/d/msgid/ansible-project/84e1aa2c-6e37-43b8-9c26-659e65f6b493%40googlegroups.com.
>  
>
> > For more options, visit https://groups.google.com/d/optout. 
>

-- 
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/b6952d59-ff93-440b-be89-9894fee9fa37%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to