Playbook over powershell

Hello everyone!

I’m trying to use ansible over powershell but when I use this command:

“ansible chs -m win_ping”

Looks like that it’s using ssh because the error show to me:

10.10.3.21 | UNREACHABLE! => {
“changed”: false,
“msg”: “SSH encountered an unknown error during the connection. We recommend you re-run the command using -vvvv, which will enable SSH debugging output to help diagnose the issue”,
“unreachable”: true
}

P.S. In my host file:

[chs]
10.10.3.21

Someone have any idea?

Thanks a lot!

Put this in your host file

[chs]
10.10.3.21

[chs:vars]

ansible_user: user
ansible_password: pass
ansible_port: 5986
ansible_connection: winrm

Looks like the IP you posted is the actual one for your host. I would suggest to use dummy values while posting on public forums :slight_smile: