The following are the terms and tools within the overall principles described above that successful DevOps engineers need to know
Once Powershell has been upgraded to at least version 3.0, the final step is to configure the WinRM service so that Ansible can connect to it. The WinRM service has two major components that manage how Ansible interacts with the Windows host. Listener and service configuration settings.
The details of each component will be described later, but you can use the script ConfigureRemotingForAnsible.ps1 to configure the basics. This script sets up the HTTP and HTTPS listeners using self-signed certificates and enables the basic authentication options of the service.
To use this script, run the following command in PowerShell:
#D: \> \ ConfigureRemotingForAnsible.ps1
The WinRM service listens for requests on one or more ports. You need to create and configure a listener for each port.
To verify that the current listener is running on the WinRM service, run the following command in PowerShell:
#winrm enumerate winrm/config/Listener
Listening ports are 5985 & 5986.