Installing Ansible on Windows 10, Using the Linux Subsystem

If you are using a 64 bit version of Windows 10 and a version later than Build 1607, you can install the Linux Subsystem and use Ansible from it.

Check if it’s 64 bit:

run msinfo from a command prompt and check the below details:

Recommendation is to install all the windows updates prior to the installation of Linux Subsystem.

Installation of Linux Subsystem for Windows:

Control Panel – Programs and Features – Turn Windows features on or off

Check Windows Subsystem for Linux

Reboot after installation

You can also enable WSL using Powershell:

After Reboot download the Ubuntu distro for WSL, Open a CMD prompt and type:

Locate the downloaded package and double click

Install the Package

When Installed, open a command prompt and type bash:

It is not recommended to use the root password, therefore I created a normal user account with sudo rights.

So let’s install the prerequisites:

Check python is installed and version is 2.7.12:

Lets create a Virtual Environment and Activate it:

Let’s install git as we will need it to install Ansible from github:

and now let’s install Ansible from github repository:

Ansible is now installed and we can test:

You may also like

Leave a Reply

Your e-mail address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.