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


On Monday, April 25, 2016 at 1:11:12 PM UTC+1, sadaa...@gmail.com wrote:
>
> 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
>
>  
>

-- 
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/30296936-d69e-4f4c-b6e1-187febbcfc58%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to