thanks, it worked , I am able to ping windows hosts but i have one more 
challenge
In my kerberos file i am adding my host name to the realms , so if i need 
to run a script or anything on multiple windows hosts do i need to add all 
those host under realms

[realms]
 XYZ.COM = {
  kdc =HOSTNAME1.XYZ.COM
  kdc =HOSTNAME2.XYZ.COM
  }




On Tuesday, November 13, 2018 at 3:36:30 PM UTC-8, Lucas Jackson wrote:
>
> It's up to you, depends on the use case. Preferably using https over 5986.
>
> Good script to use for configuring winrm for ansible 
>
>
> https://github.com/ansible/ansible/blob/devel/examples/scripts/ConfigureRemotingForAnsible.ps1
>  
> <https://www.google.com/url?q=https%3A%2F%2Fgithub.com%2Fansible%2Fansible%2Fblob%2Fdevel%2Fexamples%2Fscripts%2FConfigureRemotingForAnsible.ps1&sa=D&sntz=1&usg=AFQjCNEikBiSCvaFKgqBxKD_TD1pBiUo6w>
>
> You can configure the listener manually if you prefer but script works well
>
>
>
> Sent from my Samsung Galaxy smartphone.
>
> -------- Original message --------
> From: Nk Chitturi <chitt...@gmail.com <javascript:>> 
> Date: 2018-11-13 6:21 PM (GMT-05:00) 
> To: ansible...@googlegroups.com <javascript:> 
> Subject: Re: [ansible-project] Re: Working with Ansible on Windows Hosts 
>
> Thanks Lucas, is there any way i can make it listen on port 5986, or can 
> we use 5985 to connect.
> but here is from my windows host
> PS H:\> winrm enumerate winrm/config/listener
> Listener [Source="GPO"]
>     Address = *
>     Transport = HTTP
>     Port = 5985
>     Hostname
>     Enabled = true
>     URLPrefix = wsman
>     CertificateThumbprint
>     ListeningOn =  0.00.000.000,  , 127.0.0.1, ::1, 
> Listener [Source="Compatibility"]
>     Address = *
>     Transport = HTTP
>     Port = 80
>     Hostname
>     Enabled = true
>     URLPrefix = wsman
>     CertificateThumbprint
>     ListeningOn =  0.00.000.000,   127.0.0.1, ::1, 
> Listener [Source="Compatibility"]
>     Address = *
>     Transport = HTTPS
>     Port = 443
>     Hostname = <Servername.domain.com <http://servername.domain.com/>>
>     Enabled = true
>     URLPrefix = wsman
>     CertificateThumbprint
>     ListeningOn = 0.00.000.000, 127.0.0.1, ::1, 
>
>
> On Tue, Nov 13, 2018 at 2:27 PM lucas.adam.jackson <lucas.ada...@gmail.com 
> <javascript:>> wrote:
>
>> Your problem is you're not listening on port 5986
>>
>>
>>
>> Sent from my Samsung Galaxy smartphone.
>>
>> -------- Original message --------
>> From: Nk Chitturi <chitt...@gmail.com <javascript:>> 
>> Date: 2018-11-13 5:24 PM (GMT-05:00) 
>> To: ansible...@googlegroups.com <javascript:> 
>> Subject: Re: [ansible-project] Re: Working with Ansible on Windows Hosts 
>>
>> PS H:\> winrm enumerate winrm/config/listener
>> Listener [Source="GPO"]
>>     Address = *
>>     Transport = HTTP
>>     Port = 5985
>>     Hostname
>>     Enabled = true
>>     URLPrefix = wsman
>>     CertificateThumbprint
>>     ListeningOn =  0.00.000.000,  , 127.0.0.1, ::1, 
>> fe80::5efe:10.33.138.118%5, fe80::7008:2200:c50:e8f4%3
>>
>> Listener [Source="Compatibility"]
>>     Address = *
>>     Transport = HTTP
>>     Port = 80
>>     Hostname
>>     Enabled = true
>>     URLPrefix = wsman
>>     CertificateThumbprint
>>     ListeningOn =  0.00.000.000,   127.0.0.1, ::1, 
>> fe80::5efe:10.33.138.118%5, fe80::7008:2200:c50:e8f4%3
>>
>> Listener [Source="Compatibility"]
>>     Address = *
>>     Transport = HTTPS
>>     Port = 443
>>     Hostname = <Servername.domain.com>
>>     Enabled = true
>>     URLPrefix = wsman
>>     CertificateThumbprint
>>     ListeningOn = 0.00.000.000, 127.0.0.1, ::1, 
>> fe80::5efe:10.33.138.118%5, fe80::7008:2200:c50:e8f4%3
>>
>> PS H:\>
>>
>> this is my inbound rules
>> [image: image.png]
>>  
>>
>> On Tue, Nov 13, 2018 at 1:56 PM Jordan Borean <jbor...@gmail.com 
>> <javascript:>> wrote:
>>
>>> That either means the Firewall is blocking that port of you have no 
>>> HTTPS WinRM listener. To verify what listeners are active you can run 
>>> 'winrm enumerate winrm/config/listener' on your Windows host.
>>>
>>> -- 
>>> 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 ansible-proje...@googlegroups.com <javascript:>.
>>> To post to this group, send email to ansible...@googlegroups.com 
>>> <javascript:>.
>>> To view this discussion on the web visit 
>>> https://groups.google.com/d/msgid/ansible-project/4ed3f233-1964-4315-acdb-8806b0e9cbd1%40googlegroups.com
>>>  
>>> <https://groups.google.com/d/msgid/ansible-project/4ed3f233-1964-4315-acdb-8806b0e9cbd1%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 ansible-proje...@googlegroups.com <javascript:>.
>> To post to this group, send email to ansible...@googlegroups.com 
>> <javascript:>.
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/ansible-project/CABdF8S3%2BUrrZFtV4KWd8VAh1oHRgdL0A9ZDVgH8YP%3D-gnBRhOQ%40mail.gmail.com
>>  
>> <https://groups.google.com/d/msgid/ansible-project/CABdF8S3%2BUrrZFtV4KWd8VAh1oHRgdL0A9ZDVgH8YP%3D-gnBRhOQ%40mail.gmail.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 ansible-proje...@googlegroups.com <javascript:>.
>> To post to this group, send email to ansible...@googlegroups.com 
>> <javascript:>.
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/ansible-project/5beb4fe2.1c69fb81.d53e2.5d9b%40mx.google.com
>>  
>> <https://groups.google.com/d/msgid/ansible-project/5beb4fe2.1c69fb81.d53e2.5d9b%40mx.google.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 ansible-proje...@googlegroups.com <javascript:>.
> To post to this group, send email to ansible...@googlegroups.com 
> <javascript:>.
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/ansible-project/CABdF8S1GhC8pqRzmetcqNt-ZjcLZOk9MdJZ5GDb_jsD%3D1gDA-Q%40mail.gmail.com
>  
> <https://groups.google.com/d/msgid/ansible-project/CABdF8S1GhC8pqRzmetcqNt-ZjcLZOk9MdJZ5GDb_jsD%3D1gDA-Q%40mail.gmail.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 ansible-project+unsubscr...@googlegroups.com.
To post to this group, send email to ansible-project@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/d311d836-d771-4ba8-96dd-ead8b0534e89%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to