establishing winrm connection failing

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

For anyone looking into this:

i had to use the old instance variables:

ansible_ssh_username
ansible_ssh_pass

to make this work. I’m not sure which version or above i need for the variables explained in the document to work? 2.0 > ?

Yes, the new names came in with Ansible 2.0.

If you can, I would recommend using 2.0.0.2 or later if you are working with Windows - it's noticeably faster. Oh and check you are using pywinrm >= 0.11 as that speeds it up too.

HTH,

Jon