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
On Apr 8, 2016 7:27 AM, "Mark Matthews" <mdmat...@gmail.com> wrote:
>
> Hi Zacharias
>
> I have setup a kerberos ticket and all seems to be working fine. I am able to do a "knit username" and create a ticket.
>
> I then add the following entry into /etc/ansible/hosts file
> [win]
> servername.COMPANY.COM
>
> I have create the following /etc/ansible/group_vars/win.yml file with the following information
>
> ansible_ssh_user: user...@COMPANY.COM
> ansible_ssh_port: 5986
> ansible_connection: winrm
>
>
> Bu when I try run a playbook to the server in 'win' I get the following error:
>
> fatal: [uk-ansible-test02.WINTECH.LOCAL]: FAILED! => {"failed": true, "msg": "ssl: 401 Unauthorized. basic auth failed"}
>
>
> Any ideas as too what could be causing this?
>
Dumb question: how are you running the playbook? And, what do you get if you crank up the debug? You should see it trying the diff auths.
> 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-proje...@googlegroups.com.
> To post to this group, send email to ansible...@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/0b133188-5ba5-4930-acfe-4b223faefb1c%40googlegroups.com.
>
> For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to a topic in the Google Groups "Ansible Project" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/ansible-project/sajcZOtW2uo/unsubscribe.
To unsubscribe from this group and all its topics, send an email to ansible-proje...@googlegroups.com.
To post to this group, send email to ansible...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/0b133188-5ba5-4930-acfe-4b223faefb1c%40googlegroups.com.
I am having similar problem and afterwards used the kerberos for host variable ansible_winrm_transport.I am using ansible version 2.0.1.0.The worked configuration:
[Win]<hostname>.XXXX.XXXX.LOCAL[Win:vars]
ansible_user='xxx.xxx@XXXX.XXXXX.LOCAL'
yum install krb5-workstation yum install krb5-devel yum install krb5-libs
pip install kerberos