Hi Mark,

If you run a 

(sudo) pip list

on your ansible controller

what version is reported for the 'kerberos' library?

For some reason, ansible is still falling back to using basic auth in your 
case.  When I've seen that its either that the connection variables aren't 
getting set up, or there is something up with the python kerberos wrapper 
(such as it being missing).

Jon



On Tuesday, April 12, 2016 at 5:41:38 PM UTC+1, Mark Matthews wrote:
>
> Hi Anjana
>
> Where exactly on you putting those varibales [win:var]? Are you putting 
> those variables in /etc/ansible/hosts file?
>
> Im still getting the following error: fatal: [server.COMPANY.COM]: 
> FAILED! => {"failed": true, "msg": "ssl: 401 Unauthorized."}
>
> I have changed my groups_vars file (/etc/ansible/group_vars/win.yml) to 
> the following 
>
> ansible_user: us...@company.com <javascript:>
> ansible_port: 5986
> ansible_connection: winrm
> ansible_winrm_server_cert_validation: ignore
>
>
> And the entry on the host file is:
> [win]
> server.COMPANY.COM
>
> I have double checked that I have a token logged in when I run 'klist'.
>
> No idea what could still be causing this error??
> Any ideas would be appreciated.
>
> Cheers
> Mark
>
>
> On Thursday, April 7, 2016 at 1:27:23 PM UTC+1, Mark Matthews wrote:
>>
>> Hi
>>
>>  
>>
>> Currently I have been connecting to servers to using local server 
>> accounts, and therefore my ‘group_vars/winservers.yml’ file has looked like 
>> the following:
>>
>>  
>>
>> ansible_ssh_user: Administrator
>>
>> ansible_ssh_pass: PASSWORD
>>
>> ansible_ssh_port: 5986
>>
>> ansible_connection: winrm
>>
>>  
>>
>> But now I need to authenticate to servers that are connected on the 
>> domain. How would I change this file? Is it as simple as…
>>
>>  
>>
>> ansible_ssh_user: my.domain\mark.matthews
>>
>> ansible_ssh_pass: PASSWORD
>>
>> ansible_ssh_port: 5986
>>
>> ansible_connection: winrm
>>
>>  
>>
>>  
>>
>> Cheers
>>
>

-- 
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/4b3c8afc-8f6a-4926-8eef-e60ba0b5b67e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to