For us to manage a Windows Host using Ansible, we must configure WinRM (Windows Remote Management).
Copy this script and execute it on the target host.
On your Ansible host, add the target server on your hosts file.
Once we have these two configured, we can now test the connectivity.
On the next post, let’s test how to run Power Shell scripts using Ansible.