I Just finished going through this and the documentation is pretty good. Definitely read through the links Dick sent. https://docs.ansible.com/ansible/latest/user_guide/windows_winrm.html
I recommend reading the script it's from the Ansible site. This will get you a base set up for a lab to get you started. Long Term you will need to do a little more. One thing about CREDSSP is that if you are using it. Even with a certificate only the traffic is covered by the ssl the UserName and Password are sent as clear text. In the Security event log of your Windows Client you will see event ID 4624 with LogonTypeName set to 8 - NetworkClearText. $url = "https://raw.githubusercontent.com/ansible/ansible/devel/examples/scripts/ConfigureRemotingForAnsible.ps1" $file = "$env:temp\ConfigureRemotingForAnsible.ps1" (New-Object -TypeName System.Net.WebClient).DownloadFile($url, $file) Unblock-File $env:Temp\ConfigureRemotingForAnsible.ps1 cd $env:temp .\ConfigureRemotingForAnsible.ps1 -Verbose -EnableCredSSP -DisableBasicAuth -SubjectName "ansible" -CertValidityDays $(365 *2) | out-null Mike On Tuesday, December 11, 2018 at 6:38:28 AM UTC-6, Tharindu Weerakoon wrote: > > Hi Dick, > > really i need to config windows 2016 machine as ansible client. i want to > config my ansible installed cent os machine to communicate win 2016 server. > i have seen there are have several ways to config. Im prefer to do it via > credssp. Do you have any documentation guide. > > Tharindu > > On Tue, Dec 11, 2018 at 6:02 PM Dick Visser <[email protected] > <javascript:>> wrote: > >> On Tue, 11 Dec 2018 at 11:05, Tharindu Weerakoon <[email protected] >> <javascript:>> wrote: >> > >> > Dears, >> > >> > Anyone has recommended document of link for configure ansible in win >> 2016 with selfsign cert. >> >> I'm not sure what you mean by "client host" in the subject of the message. >> If you mean you want to use Windows as the control machine, then it's >> easy, that is not supported: >> >> https://docs.ansible.com/ansible/latest/installation_guide/intro_installation.html#control-machine-requirements >> >> If you plan to manage Windows systems, then this is possible: >> https://docs.ansible.com/ansible/latest/user_guide/windows.html >> >> Dick >> >> -- >> 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] <javascript:>. >> To post to this group, send email to [email protected] >> <javascript:>. >> To view this discussion on the web visit >> https://groups.google.com/d/msgid/ansible-project/CAL8fbwPYZkK7FLsdBt5GfotN%2BNngVU3FUyfburtuWr1NsFN5Kg%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/ad2d7caf-3597-4eec-b8c6-ea5bacc42323%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
