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:

Now chocolatey is present, install

Now we need to configure WLS:

Now search the Windows Store for Ubuntu. Install it with GET. Press LAUNCH then:

Installing Ubuntu on Windows

Now choose username and password.

Then update packages via

Configure Ansible Control Machine on WSL

See http://docs.ansible.com/ansible/latest/intro_installation.html#latest-releases-via-apt-ubuntu

Installing Ansible as Control Machine on WLS

Don´t get confused: On Windows the tools Vagrant & VirtualBox must be used from a PowerShell, Ansible will be used from the Windows Linux Subsystem (WSL).

Last updated