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
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
Hello,
Make sure you have gone through all the set up steps
Installing the extra components you need on the ansible controller:
http://docs.ansible.com/ansible/intro_windows.html#installing-on-the-control-machine
Modifying your ansible inventory / group_vars with windows-specific settings:
http://docs.ansible.com/ansible/intro_windows.html#inventory
and running the setup steps on the windows machines that you want to control:
http://docs.ansible.com/ansible/intro_windows.html#windows-system-prep
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