For Ansible Tower support see https://support.ansible.com/hc/en-us

Might be worth checking you have installed the python library that allows 
python to work with the kerberos libraries

if you start python and run
import kerberos

if you get an error message then you are missing the python kerberos 
library.

The only way I know to install that is using pip like this

pip install kerberos

Hope this helps

Jon

On Wednesday, May 4, 2016 at 4:29:03 AM UTC+1, Chethan S wrote:
>
> I have setup my Ansible Tower and Windows Kerberos / Active Directory 
> authentication as specified here 
> <http://hindenes.com/trondsworking/2015/07/27/ansible-and-windows-configuring-kerberosactive-directory-authentication/>.
>  
> It is the same procedure explained in the official documentation too. For 
> information here is what I did -
>
>    1. Installed the suggested Kerberos packages in the Ubuntu server
>    2. Edited the configuration files as suggested
>
> I could verify that my configuration is working fine by running the kinit 
> command as suggested -
>
> kinit -C user...@domain.com <javascript:>
>
>
> The klist command run after that showed the expected information
>
> klist
> Ticket cache: FILE:/tmp/krb5cc_1000
> Default principal: user...@domain.com <javascript:>
>
> Valid starting       Expires              Service principal
> 2016-05-03T10:59:04  2016-05-03T20:59:04  krbtgt/domai...@domain.com 
> <javascript:>
>     renew until 2016-05-04T10:58:59
>
>
> My Ansible Tower inventory contains just one VM, where under the variables 
> in host properties, I have specified the following details -
>
> ansible_connection: winrm
> ansible_port: "5986"
> ansible_ssh_user: user...@domain.com <javascript:>
>
>
> I suppose the password is not necessary since the ticket is obtained 
> through the kinit command. I have tried adding the password above by 
> specifying *ansible_ssh_pass* but that didn't help.
>
>
> Now when I run the 'Job Template' it fails instantly with this message.
>
> TASK [setup] 
> *******************************************************************
> fatal: [VM-NAME]: FAILED! => {"failed": true, "msg": "kerberos: 
> (('Unspecified GSS failure.  Minor code may provide more information', 
> 851968), ('No Kerberos credentials available', -1765328243)), plaintext: 401 
> Unauthorized."} 
>
>
> How can I resolve this issue?
>

-- 
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/374f2a0e-cab6-440b-9299-7a8786ad1c92%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to