Hi

im using my own AMI based on win 2012 R2 and i have followed your procedure 
and also removed all firewalls  

im not using any domain which means no kerberos is needed.

and still got this error :

[igal@localhost temp]$ ansible windows -i hosts -m win_ping -vvvvv
<172.26.2.34> ESTABLISH WINRM CONNECTION FOR USER: dev_user on PORT 5985 TO 
172.26.2.34
<172.26.2.34> WINRM CONNECT: transport=plaintext 
endpoint=http://172.26.2.34:5985/wsman
<172.26.2.34> WINRM CONNECTION ERROR: 401 Unauthorized.
<172.26.2.34> WINRM CONNECT: transport=plaintext 
endpoint=https://172.26.2.34:5985/wsman
<172.26.2.34> WINRM CONNECTION ERROR: 500 WinRMTransport. [SSL: 
UNKNOWN_PROTOCOL] unknown protocol (_ssl.c:590)
172.26.2.34 | FAILED => 500 WinRMTransport. [SSL: UNKNOWN_PROTOCOL] unknown 
protocol (_ssl.c:590)


On Friday, November 21, 2014 at 3:58:24 PM UTC+2, youmarva wrote:
>
> *Thanks* J Hawkesworth for your response
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
> *.I resolve the problem at the end by doing this steps in a windows 7 sp1 
> and in a windows server 2012:1 - run powershell as an administrator2 - For 
> Remote Signed, run Set-ExecutionPolicy RemoteSigned.3 - For Unrestricted, 
> run Set-ExecutionPolicy Unrestricted.4 - Verify that the command did not 
> produce any errors.5 - Type Exit at the PowerShell command prompt.If in 
> executing this script we have the error below (in windows 7 sp1):> 
> .\ConfigureRemotingForAnsible.ps1-->.ps1 : PowerShell/Windows Management 
> Framework needs to be updated to 3 or higher. Stopping scriptwe should 
> execute:> C:\Users\admin\Documents\Ansible> .\upgrade_to_ps3.ps1    
> Répertoire : C:\Mode                LastWriteTime     Length Name----       
>          -------------     ------ ----d----        10/11/2014     14:19     
>        powershellC:\Users\admin\Documents\Ansible> 
> .\ConfigureRemotingForAnsible.ps1WinRM a été mis à jour pour recevoir des 
> demandes.Le type du service WinRM a été correctement modifié.WinRM a été 
> mis à jour pour la gestion à distance.Écouteur WinRM créé sur HTTP://* pour 
> accepter les demandes de la gestion des services Web sur toutes les 
> adresses IP de cet ordinateur.Exception de pare-feu WinRM activée.wxf       
>           : http://schemas.xmlsoap.org/ws/2004/09/transfer 
> <http://schemas.xmlsoap.org/ws/2004/09/transfer>a                   : 
> http://schemas.xmlsoap.org/ws/2004/08/addressing 
> <http://schemas.xmlsoap.org/ws/2004/08/addressing>w                   : 
> http://schemas.dmtf.org/wbem/wsman/1/wsman.xsd 
> <http://schemas.dmtf.org/wbem/wsman/1/wsman.xsd>lang                : 
> fr-FRAddress             : 
> http://schemas.xmlsoap.org/ws/2004/08/addressing/role/anonymous 
> <http://schemas.xmlsoap.org/ws/2004/08/addressing/role/anonymous>ReferenceParameters
>  
> : ReferenceParametersOk.*
> in case it can help someone else
> (Sorry for my english)
>
> Youmarva
>
> Le lundi 10 novembre 2014 18:26:09 UTC+1, J Hawkesworth a écrit :
>>
>> 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/6003a4cf-628c-458f-aedd-76bbbfac8ae4%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to