I am aware of the support for SSH in Windows 2019 and Windows 10.
I installed the OpenSSH in Windows 8.1 and tried to enter it. All is well.
But if you turn on ssh transport in ansable, then nothing works
I have not done something in Windows 8.1 and it works in Windows 2019 and Windows 10?
Or ansibla does not support work in Windows through SSH at all?
Until you upgrade to Ansible 2.8 (currently has an alpha1 release) this wonβt work. Experimental support for using SSH with Windows was added with https://github.com/ansible/ansible/pull/47732. Be aware that this is experimental and if you want something more solid then I advise that you continue to use WinRM instead.