Hi, 

I am facing same issue even after changing ansible_ssh_password to 
ansible_password.

Facing issue with 401 unauthorized error for winrm connection. Need help




On Friday, November 13, 2015 at 3:08:16 AM UTC+5:30, [email protected] 
wrote:

> Try changing:
>
> ansible_ssh_password=ansible
>
> to
>
> ansible_ssh_pass=ansible
>
> That tripped me up with 1.9.4.
>
> Same thing would apply to your windows.yml.
>
> Kev
>
>
> On Wednesday, October 21, 2015 at 5:48:13 PM UTC+1, Tianwei Liu wrote:
>>
>> Hi,
>>
>> I am having this weird problem that my ansible will always show 401 error 
>> when trying to connect my windows machine via winrm. Although I can use 
>> pywinrm with no problem at all authenticating with the exact same account 
>> and password.
>>
>> My inventory:
>> [windows]
>> 192.168.2.3
>>
>> [windows:vars]
>> ansible_ssh_user=ansible
>> ansible_ssh_password=ansible
>> ansible_ssh_port=5986
>> ansible_connection=winrm
>>
>> I can run the example from: https://github.com/diyan/pywinrm and get 
>> results with no problem but my ansible ping results in 401.
>>
>> $ ansible windows -i inventory.yml -m win_ping -vvvv
>>
>> <192.168.2.3> ESTABLISH WINRM CONNECTION FOR USER: ansible on PORT 5986 
>> TO 192.168.2.3
>>
>> <192.168.2.3> WINRM CONNECT: transport=plaintext endpoint=
>> https://192.168.2.3:5986/wsman
>>
>> <192.168.2.3> WINRM CONNECTION ERROR: 401 Unauthorized.
>>
>> 192.168.2.3 | FAILED => 401 Unauthorized. 
>>
>>

-- 
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 post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/c9c6b90d-04ad-4452-ad08-8aec83c13743%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to