Ansible

Install Ansible


Ansible is pre installed on the Ubuntu VM. You can skip this part if you are using the premade VM

Official Installation Documentation

Installing Ansible - Ansible Documentation

Windows

  1. Open the Start menu and search for Turn Windows features on or off. Click on the shortcut when it appears.

  2. Scroll down through the list of features until you see Windows Subsystem for Linux & Virtual machine Platform. Click on the checkbox for both, and then click OK to enable the feature.

Loading image...

  1. If you would like to use Windows Subsystem for Linux 2. Download the update from the following link and install the Subsystem.

    Download WSL Update

Loading image...

  1. After the install is completed run the following command in powershell

    wsl --set-default-version 2
  2. Open the Microsoft Store. Search for Ubuntu and click on Get to install the latest version.

  3. Once the installation is complete, click on Launch to start up the Ubuntu command terminal.

    Loading image...

  4. You should have a Ubuntu shell with your newly created user.

    Loading image...

  5. To install Ansible, enter the following set of commands:

    sudo apt-get update
    sudo apt-get install software-properties-common -y
    sudo apt-add-repository --yes --update ppa:ansible/ansible
    sudo apt-get update
    sudo apt-get install ansible-core -y

Linux

Installing Ansible on Ubuntu

Ubuntu builds are available in a PPA here.

To configure the PPA on your machine and install Ansible run these commands:

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

MacOS

  1. Install Homebrew
/bin/bash -c "$(curl -fsSL [https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh](https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh))"
  1. Install Ansible
brew install ansible