Ansible on Ubuntu 18.04 on WSL

Installing Ansible on Ubuntu 18.04 on WSL.
There's a few hiccups in the install process and it's necessary to modify the way the drives are mounted.

sudo apt update
sudo apt install software-properties-common
sudo apt-add-repository ppa:ansible/ansible
sudo apt update
sudo apt install ansible

Once WSL is up and running, create/modify the /etc/wsl.conf to include the following:

#Let’s enable extra metadata options by default
options = "metadata,umask=22,fmask=11"

This will ensure that the folders and files aren't just world writeable by default. The metadata flag allows writing separate linux permissions from the windows permissions, they can't be more permissive but you can restrict further to make various linux binaries happier about their execution environment.
See for more details.


Popular posts from this blog

Enabling SNMP on an ASUS RT-N66U

Making Microsoft Dataverse OData queries using Postman

Debugging multiple PHP projects with VS Code and Laragon