Based on your screenshot you didn't define ansible_shell_type for the 
Windows hosts as per the guide. This is crucial for getting ssh to work 
with Windows as it must match the remote shell that's being used, in your 
case that's powershell.
On Monday, June 26, 2023 at 11:06:35 PM UTC+10 gonzalo diaz larenas wrote:

> Dear, thank you for answering, I already did all those steps, and it keeps 
> throwing me the same error.
> Using the ssh command [email protected] I can connect directly without 
> any problem, I have it configured so that it does not ask me for a password 
> when making the ssh connection, the problem happens when I apply any 
> ansible ad-hoc command For example ansible -i inventory -m ping all, or 
> when I apply a playbook, I attach a file with the ssh connection directly 
> to the Windows 10 machine from a centralized Debian server, I would 
> appreciate your guidance.
>
>
> El jue, 22 jun 2023 a las 18:34, Brian Coca (<[email protected]>) escribió:
>
>> Did you follow 
>> https://docs.ansible.com/ansible/latest/os_guide/windows_setup.html#windows-ssh-setup
>>  
>> ?
>>
>>
>> -- 
>> ----------
>> Brian Coca
>>
>> -- 
>> 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 view this discussion on the web visit 
>> https://groups.google.com/d/msgid/ansible-project/CACVha7dqnVE%3DYod5aujn8eTN4AEV25-T-EEqG6J%2Bkc-sVHP-qg%40mail.gmail.com
>>  
>> <https://groups.google.com/d/msgid/ansible-project/CACVha7dqnVE%3DYod5aujn8eTN4AEV25-T-EEqG6J%2Bkc-sVHP-qg%40mail.gmail.com?utm_medium=email&utm_source=footer>
>> .
>>
>

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/48e09112-513e-4bd1-ba29-ab383562230cn%40googlegroups.com.

Reply via email to