The script has changed a bit since Chris's message (over a year ago).
Can you confirm you have upgraded to powershell 3 or 4 on the machines
before running ConfigureRemotingForAnsible.ps1
It would help if you provide the exact error message.
Hope this helps,
Jon
On Wednesday, 2 March 2016 13:39:56 UTC, Fahd Ajmal wrote:
>
> Hi Chris,
>
> I am getting similar error while running {ConfigureRemotingForAnsible.ps1}
> on some machines. I tried to look for L135 in the script but that is
> already a comment. can you please mention the exact line (code) that needs
> to be commented out?
>
>
> { # Create the hashtables of settings to be used.
> $valueset = @{} $valueset.Add('Hostname', $SubjectName) $valueset.Add(
> 'CertificateThumbprint', $thumbprint)}
>
>
>
>
>
>
> Regards,
> Fahd
>
> On Wednesday, 10 December 2014 00:32:00 UTC+11, Chris Church wrote:
>>
>> 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/b17f2c95-039b-4497-9774-e9ea79d609a3%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.