Step 1: Prerequisites
First we need some tools like VirtualBox, Vagrant, git, Ansible...
Mac
We´re using homebrew package manager here:
$ brew cask install virtualbox
$ brew cask install vagrant
$ vagrant plugin install vagrant-dns
$ brew install git
$ brew install ansible
# Check all tools are working:
$ vagrant --version
$ git --version
$ ansible --version
# Install Vagrant plugins:
$ vagrant plugin install vagrant-dns
Windows
chocolatey & WSL
Bit more complicated then Mac/Unix, since Ansible doesn´t support Windows as the control machine. But there´s the Windows Linux Subsystem (WLS) ftw!
First we install VirtualBox, Vagrant & git with the package manager chocolatey. Open an evelated Powershell:
$ Set-ExecutionPolicy Bypass -Scope Process -Force; iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))
Now chocolatey is present, install
$ choco install virtualbox
$ choco install vagrant
$ choco install git
# Check all tools are working:
$ vagrant --version
$ git --version
# Install Vagrant plugins:
$ vagrant plugin install vagrant-dns
Now we need to configure WLS:
Enable-WindowsOptionalFeature -Online -FeatureName Microsoft-Windows-Subsystem-Linux
Now search the Windows Store for Ubuntu. Install it with GET. Press LAUNCH then:

Now choose username and password.
Then update packages via
sudo apt-get update
Configure Ansible Control Machine on WSL
See http://docs.ansible.com/ansible/latest/intro_installation.html#latest-releases-via-apt-ubuntu
sudo apt-add-repository ppa:ansible/ansible
sudo apt-get update
sudo apt-get install ansible
# Check all tools are working:
$ ansible --version

Last updated