That error is coming from the attempt to connect back to localhost. 'd made changes to some of the error handling recently; previously the script would write an error message but continue to run.
Try commenting out line 135 ( https://github.com/ansible/ansible/blob/devel/examples/scripts/ConfigureRemotingForAnsible.ps1#L135) to let the script continue past the error: Throw "Unable to establish an HTTP or HTTPS remoting session." Please let me know if that change works for you. On Tue, Dec 9, 2014 at 6:44 AM, youmarva <[email protected]> wrote: > I want to exécute in a windows 7 machine to allow connexion with Ansible. > > In some Machines I have this error when executing > ConfigureRemotingForAnsible.ps1 (as admin) : > > PS C:\Users\adminsifast\Documents\Ansible> > .\ConfigureRemotingForAnsible.ps1 > > WinRM has been updated to receive requests. > The type of the WinRM service was successfully modified. > > > *or (**WinRM is already configured to receive this request**)* > > C:\Users\adminsifast\Documents\Ansible\ConfigureRemotingForAnsible.ps1 : > Could not establish session on either HTTP or > HTTPS. Breaking > Au caractère Ligne:1 : 1 > + .\ConfigureRemotingForAnsible.ps1 > + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > + CategoryInfo : NotSpecified: (:) [Write-Error], WriteErrorException > + FullyQualifiedErrorId : > Microsoft.PowerShell.Commands.WriteErrorException,ConfigureRemotingForAnsible.ps1 > > > I searched this error but I have not find a solution to it. > for some pc when I execute ConfigureRemotingForAnsible.ps1 I have no > problem but on the other the proplem persists. > > if you have an idea thank you to orient me, I really need a solution to > communicate with Ansible. > > thank you > > -- > 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/cb6bbb28-bc6c-4485-b3de-8d2b67376768%40googlegroups.com > <https://groups.google.com/d/msgid/ansible-project/cb6bbb28-bc6c-4485-b3de-8d2b67376768%40googlegroups.com?utm_medium=email&utm_source=footer> > . > For more options, visit https://groups.google.com/d/optout. > -- 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/CAH%2BKTJ6Ht3AE4RhPAZ8e5wtccD%2BDZ5vr9z5W_SpYoTA0n9hWUw%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
