Windows_error_401_Unauthorized. basic auth failed

16 views
Skip to first unread message

sadaa...@gmail.com

unread,
Apr 25, 2016, 8:11:12 AM4/25/16
to Ansible Project
hi
is there anyone can help me !

I'm trying to connect to windows  machine . ( windows 10)

I get this error "401_Unauthorized. basic auth failed"

i use ubuntu 14.04 as controller machine !

 ansible version 1.9.1

 

J Hawkesworth

unread,
Apr 25, 2016, 8:53:03 AM4/25/16
to Ansible Project
Hello,

Make sure you have gone through all the set up steps

Installing the extra components you need on the ansible controller:


Modifying your ansible inventory / group_vars with windows-specific settings:


and running the setup steps on the windows machines that you want to control:



Usually the message you are seeing is because the username and password don't match.  Sometimes this happens when you attempt to use a windows domain username but don't have all the components in place on the ansible controller for it to connect via kerberos (which is needed in order to use domain users at the moment).

You can also run ansible / ansible-playbook commands with -v or -vvvvvv for extra information.  This can help find out which user ansible is attempting to connect as.

Sometimes it is useful to look in the event viewer on the windows machine you are trying to connect to.

Hope this helps,

Jon
Reply all
Reply to author
Forward
0 new messages