- Control Panel -> Programs and Features -> Turn Windows features on or off -> Check 'Windows Subsystem for Linux'. Windows will require a reboot.
- Open Microsoft Store and seach for "linux", select Ubuntu and install. If store doesnt work, download manual install package: https://docs.microsoft.com/en-us/windows/wsl/install-manual
- After install run in, you will need to create new user in linux installation
- First update packages:
sudo apt update
- Install Pip:
sudo apt-get -y install python3-pip python3-dev libffi-dev libssl-dev
- Install Ansible:
pip install ansible --user
- Since the ansible commands are installed under
~/.local/bin
, we need to add that to the$PATH
, so run the command:echo 'PATH=$HOME/.local/bin:$PATH' >> ~/.bashrc