Just checking, have you run the powershell script to enable remoting on 
your windows-vm machine?

See http://docs.ansible.com/intro_windows.html#windows-system-prep

and this script here:

https://github.com/ansible/ansible/blob/devel/examples/scripts/ConfigureRemotingForAnsible.ps1

Until the script is run I would expect your windows-vm to refuse 
connections.



On Saturday, November 8, 2014 12:03:45 PM UTC, youmarva wrote:
>
> Hi,
>
> I recently install Ansible 1.8, and I'm testing its fonctionnality
> I recently installed Ansible 1.8 on Debian 7.1, I test its functionality in 
> order to work with.
>
> But testing the functionality of Windows logon, I have a connection error 
> as shown below:
>
> root@ansible:/etc/ansible# ansible windows-vm -m win_ping -vvvv
> <192.168.1.108> ESTABLISH WINRM CONNECTION FOR USER: administrateur on 
> PORT 5986 TO 192.168.1.108
> <192.168.1.108> WINRM CONNECT: transport=plaintext endpoint=https://
> 192.168.1.108:5986/wsman
> <192.168.1.108> WINRM CONNECTION ERROR: 500 WinRMTransport. [Errno 111] 
> Connection refused
> <192.168.1.108> WINRM CONNECT: transport=plaintext endpoint=http://
> 192.168.1.108:5986/wsman
> <192.168.1.108> WINRM CONNECTION ERROR: 500 WinRMTransport. [Errno 111] 
> Connection refused
> openerpb | FAILED => 500 WinRMTransport. [Errno 111] Connection refused
>
> I create a file windows.yml under  /etc/ansible/group_vars indicating in 
> the pameters of my windows server and I added the address of my host in 
> the /etc/ansible/hosts.
>
> root@ansible:/etc/ansible# cat hosts 
> [windows]
> windows-vm ansible_ssh_host=192.168.1.108
>
>
> root@ansible:/etc/ansible# cat group_vars/windows.yml 
> # it is suggested that these be encrypted with ansible-vault:
> # ansible-vault edit group_vars/windows.yml
>
> ansible_ssh_user: administrateur
> ansible_ssh_pass: password
> ansible_ssh_port: 5986
> ansible_connection: winrm
>
>
> This error is due to what do you think?
> Thank you for help
>
> youmarva
>
>

-- 
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/ae2c30a2-4709-4066-bd9e-eeb09365aebd%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to