Playbook over powershell

31 views
Skip to first unread message

Rodrigo Rapozo

unread,
Apr 6, 2016, 11:20:44 AM4/6/16
to Ansible Project
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!

ishan jain

unread,
Apr 7, 2016, 12:40:17 AM4/7/16
to Ansible Project
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 :-)
Reply all
Reply to author
Forward
0 new messages