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.ps1You can configure the listener manually if you prefer but script works wellSent from my Samsung Galaxy smartphone. -------- Original message --------From: Nk Chitturi <[email protected]> Date: 2018-11-13 6:21 PM (GMT-05:00) To: [email protected] 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 hostPS H:\> winrm enumerate winrm/config/listenerListener [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> 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 <[email protected]> wrote:Your problem is you're not listening on port 5986Sent from my Samsung Galaxy smartphone.-------- Original message --------From: Nk Chitturi <[email protected]> Date: 2018-11-13 5:24 PM (GMT-05:00) To: [email protected] Subject: Re: [ansible-project] Re: Working with Ansible on Windows Hosts PS H:\> winrm enumerate winrm/config/listenerListener [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%3Listener [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%3Listener [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%3PS H:\>this is my inbound rules On Tue, Nov 13, 2018 at 1:56 PM Jordan Borean <[email protected]> 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 [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/4ed3f233-1964-4315-acdb-8806b0e9cbd1%40googlegroups.com. 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/CABdF8S3%2BUrrZFtV4KWd8VAh1oHRgdL0A9ZDVgH8YP%3D-gnBRhOQ%40mail.gmail.com. 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/5beb4fe2.1c69fb81.d53e2.5d9b%40mx.google.com. 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/CABdF8S1GhC8pqRzmetcqNt-ZjcLZOk9MdJZ5GDb_jsD%3D1gDA-Q%40mail.gmail.com. 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/5beb5fef.1c69fb81.7889c.719b%40mx.google.com. For more options, visit https://groups.google.com/d/optout.
