Windows Remote Management

How to open WinRM ports in the Windows firewall
We need to make sure, ports 5985 and 5986 (HTTPS) are open in firewall (both OS as well as network side) for Ansible to connect to Windows machine.

We need to make sure, ports 5985 and 5986 (HTTPS) are open in firewall (both OS as well as network side) for Ansible to connect to Windows machine.