Turns out it was using the wrong hostname. On line 139 of the powershell
script I had to hard-code the common name used for my certificate. Like
this..
139 $valueset.Add('Hostname", "ansibleAdmin.aa.bb.acme.com
<http://ansibleadmin.aa.bb.acme.com/>")
Now it works.
On Thursday, June 16, 2016 at 2:18:27 PM UTC-5, skinnedknuckles wrote:
>
> Control Node:
>
> - CentOS 7
> - Ansible 2.1
> - pywinrm version from May 19th, 2016
>
> Remote Node:
>
> - Windows 7
> - Powershell 3
>
> When I run Trond Hindenes powershell script
> <https://github.com/ansible/ansible/blob/devel/examples/scripts/ConfigureRemotingForAnsible.ps1>
>
> for setting up my windows remote node to connect with ansible I get the
> following output.
>
> *VERBOSE: Verifying WinRM service.*
> *VERBOSE: Starting WinRM service.*
> *VERBOSE: PS Remoting is already enabled.*
> *VERBOSE: SSL listener is already active.*
> *VERBOSE: Basic auth is already enabled.*
> *VERBOSE: Firewall rule already exists to allow WinRM HTTPS.*
> *VERBOSE: HTTP: Enabled | HTTPS: Disabled*
> *VERBOSE: PS Remoting has been successfully configured for Ansible.*
>
> Why would HTTPS be disabled and how do I enable it?
>
> Here are my winrm service settings.
>
> PS C:\Users\ads-6999> winrm get winrm/config/service
> Service
> RootSDDL =
> O:NSG:BAD:P(A;;GA;;;BA)(A;;GR;;;IU)S:P(AU;FA;GA;;;WD)(AU;SA;GXGW;;;WD)
> MaxConcurrentOperations = 4294967295
> MaxConcurrentOperationsPerUser = 1500
> EnumerationTimeoutms = 240000
> MaxConnections = 300
> MaxPacketRetrievalTimeSeconds = 120
> AllowUnencrypted = false
> Auth
> Basic = true
> Kerberos = true
> Negotiate = true
> Certificate = true
> CredSSP = false
> CbtHardeningLevel = Relaxed
> DefaultPorts
> HTTP = 5985
> HTTPS = 5986
> IPv4Filter = *
> IPv6Filter = *
> EnableCompatibilityHttpListener = false
> EnableCompatibilityHttpsListener = false
> CertificateThumbprint
> AllowRemoteAccess = true
>
--
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/8ab46111-52c9-43c8-9041-84e2f7b5979e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.