Hi,
Do you have
ansible_connection: winrm
set against your host or better still in the group vars that apply to your
windows hosts. See
http://docs.ansible.com/ansible/intro_windows.html#inventory
Ansible needs telling to use winrm, otherwise it will default to attempting
ssh connection, which is not available on windows.
Jon
On Wednesday, 6 April 2016 16:20:39 UTC+1, Rodrigo Rapozo wrote:
>
> 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 is:
>
> x.x.x.x | 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. My host file (/root/ansible/hosts):
> [chs]
> x.x.x.x
>
> Someone have any idea?
>
--
You received this message because you are subscribed to the Google Groups
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/ansible-project/21c28968-c4d5-4bd8-a7b7-2282d80ea99b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.