Hi
I’ve posted my question allready on Stackoverflow. Can I direct your attention to the question there?
https://stackoverflow.com/questions/67331856/ansible-fails-to-connect-from-linux-to-windows-via-ssh
Thanks.
Hi
I’ve posted my question allready on Stackoverflow. Can I direct your attention to the question there?
https://stackoverflow.com/questions/67331856/ansible-fails-to-connect-from-linux-to-windows-via-ssh
Thanks.
Support was added in 2.8
https://docs.ansible.com/ansible/latest/user_guide/windows_faq.html#can-i-connect-to-windows-hosts-over-ssh
I’ve tested now with ansible version 2.9.20 and 2.10.8 . Do you think the support was dropped after 2.8?
I can’t test a downgrade. Now I’m off for the weekend.
I’m willing to downgrade/upgrade my ansible-installtion on the Linux side or reinstall Openssh on the Windows side.
Right now I’m really unsure if using Ansible from Linux commanding Windows over SSH is it at all working.
Can please someone confirm/deny this?
I got it. For some reason on the command-line ansible ignores the lines
shell_type=powershell
or
ansible_shell_type=powershell
in the ansible.cfg.
The command-line ansible needs the option to be put in the --extra-vars ‘ansible_shell_type=powershell’. This command
ansible -m win_ping -e ‘ansible_shell_type=powershell’ windows-machine
works.