# Playbook over powershell

**URL:** <https://forum.ansible.com/t/playbook-over-powershell/21078>\
**Category:** Ansible Project\
**Created:** [April 6, 2016, 3:14pm UTC](https://forum.ansible.com/t/playbook-over-powershell/21078 "2016-04-06T15:14:29Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Rodrigo\_Rapozo](https://avatars.discourse-cdn.com/v4/letter/r/e8c25b/32.png) [@Rodrigo\_Rapozo](https://forum.ansible.com/u/Rodrigo_Rapozo)\
**Post date:** [April 6, 2016, 3:14pm UTC](https://forum.ansible.com/t/playbook-over-powershell/21078/1 "2016-04-06T15:14:29Z")

</div>

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!

---

<div class="post-metadata">

**Author:** ![ishan\_jain](https://avatars.discourse-cdn.com/v4/letter/i/dc4da7/32.png) [@ishan\_jain](https://forum.ansible.com/u/ishan_jain)\
**Post date:** [April 7, 2016, 4:40am UTC](https://forum.ansible.com/t/playbook-over-powershell/21078/2 "2016-04-07T04:40:17Z")

</div>

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 🙂
