Install Ansible in WSL
The Windows Subsystem for Linux (WSL) is not officially supported by Ansible and should not be used for production.
$ sudo apt update && sudo apt upgrade -y
$ sudo apt install python3-pip git libffi-dev libssl-dev -y
$ pip3 install --user ansible pywinrm # pywinrm is a Python client for the Windows Remote Management (WinRM) service