Oh! Here is the reported error:

fatal: [test.domain.com]: UNREACHABLE! => {"changed": false, "msg": 
"kerberos: authGSSClientStep() failed: (('Unspecified GSS failure.  Minor 
code may provide more information', 851968), ('No Kerberos credentials 
available (default cache: FILE:/tmp/krb5cc_0)', -1765328243))", 
"unreachable": true}

hmmm.. I believe credentials should be read from host file! I am not sure 
why it's not reading.

Thanks,
Work Hard

On Monday, July 27, 2020 at 8:53:48 PM UTC-7, [email protected] wrote:
>
> You need to share the error you are getting back, right now we cannot tell 
> what is going wrong.
>
> On Tuesday, July 28, 2020 at 8:32:50 AM UTC+10 [email protected] wrote:
>
>> Hello,
>> Kerberos authentication is failing on some servers even after providing 
>> credentials in host file.
>>
>> *Host File*
>> [windows_server]
>> test.domain.com
>>
>> [windows:vars]
>> ansible_user=*****
>> ansible_password=******
>> ansible_connection = winrm
>> ansible_ssh_port = 5986
>> ansible_winrm_transport = kerberos
>> ansible_winrm_server_cert_validation = ignore
>> validate_certs = false
>>
>> *Playbook:*
>>
>>  hosts: windows_server
>>   vars:
>>     ansible_connection: winrm
>>     ansible_ssh_port: 5986
>>     ansible_winrm_transport: kerberos
>>     ansible_winrm_server_cert_validation: ignore
>>     validate_certs: false
>>     ansible_winrm_scheme: https
>>     ansible_winrm_read_timeout_sec: 30
>>     ignore_unreachable: true
>>     gather_facts: false
>>
>>
>> Note - If I provide kinit [email protected] (credentials) the playbook 
>> works for some servers and windows machines but not for others. Weird!
>>
>>
>> Thanks, 
>>
>

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/45be9a43-909d-4cc3-a624-8b994282807ao%40googlegroups.com.

Reply via email to