I have a CentOS 7.2 server with Ansible 1.9.4 running.  I'm trying to ping 
or get info from windows servers following the documentation 
here: http://docs.ansible.com/ansible/intro_windows.html
I've added a windows host to the hosts file under windows. Ran the ps1 
script to enable remoting etc. I created a group_vars directory in there 
and a windows.yml file and set it up as described in the document.

I'm trying to run a *ansible windows -m setup -vvvv* and see the following

<10.69.28.100> ESTABLISH WINRM CONNECTION FOR USER: root on PORT 5986 TO 
x.x.x.x
<10.69.28.100> WINRM CONNECT: transport=plaintext 
endpoint=https://x.x.x.x:5986/wsman
<10.69.28.100> WINRM CONNECTION ERROR: 401 Unauthorized.

It appears like none of the inventory variables in group_vars/windows.yml 
are being read except for ansible_connection: winrm
If i change the port , there is no change in the error message. Same for 
username and password. I'm not sure why this is happening . Any input will 
be appreciated.

Other notes:
Kerberos appears to work. I can klist etc.
The centos server is joined to the domain
I don't see anything in the windows server event logs and confirm that the 
account information is correct

-- 
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/004aade5-271a-4ac3-9afa-b612db92e8e5%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to