Okay, it works now.  I was missing just one thing.  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")

where ansibleAdmin is the local account with admin privileges described in 
step 4 above.

On Wednesday, June 15, 2016 at 5:29:25 PM UTC-5, skinnedknuckles wrote:
>
> Control Node:
>
>    - CentOS 7
>    - Ansible 2.1
>    - pywinrm version from May 19th, 2016
>
> Remote Node:
>
>    - Windows 7
>    - Powershell 3
>
> Here is everything I've picked up so far to get SSL working.  Please let 
> me know if each of these are correct or not.
>
> 1.  I must have pywinrm installed on the management node
>
> 2.  The /etc/ansible/hosts file on the management node must have something 
> like this
>
> [windows]
> computerName1
> computerName2
>
> 3.  The directory /etc/ansible/group_vars must have a YAML file whos name 
> matches the word in brackets above (windows in this case).  So 
> /etc/ansible/group_vars/windows.yml should look something like this
>
> ansible_user: ansibleAdmin
> ansible_password: p@$$w0rd
> ansible_port: 5986
> ansible_connection: winrm
>
> 4.  There must be a local account with admin privileges created on each 
> remote node with the same username and password as listed above.
>
> 5.  A certificate request must be created on a remote node with the IIS 
> manager and submitted to my IT department using exact name as shown above 
> in the windows.yml file.  The common name on the certificate request must 
> be something like
>
> ansibleAdmin.aa.bb.acme.com
>
> 6.  The certificate(s) sent back to me from the IT department must be 
> imported using mmc on each remote node.
>
> 7.  Each remote node must be running powershell and have downloaded and 
> run Trond Hindenes powershell script 
> <https://github.com/ansible/ansible/blob/devel/examples/scripts/ConfigureRemotingForAnsible.ps1>
>  
> for enabling WinRM/PSRemoting
>
> 8.  If all of this is done correctly I should get a pong from each of my 
> remote nodes when I type my win_ping request as shown below
>
> $ansible windows -m win_ping
>
> Is all of this correct?   Am I missing anything?
>

-- 
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/89058489-fff8-478e-8068-b37a9f97ef4d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to