10.1 Installation

All major platforms’ installation instructions are available in the official Ansible documentation. Please check the official documentation .

There are 2 types of installation:

  1. Linux package

sudo apt-get update
sudo apt-get install software-properties-common
sudo apt-add-repository --yes --update ppa:ansible/ansible
sudo apt-get install ansible
  1. Python package

# Create and activate new virtual environment
python3.11 -m venv venv
. venv/bin/activate

# Install Ansible
pip install ansible

# Check the installed version
ansible --version

Note

We normally use pip installation for development and testing upcoming features, but rely on the Linux package for production.

Graphical User Interface

Ansible is a cli application, but we can add a GUI interface for easy management - AWX

Starting in version 18.0, the AWX Operator is the preferred way to install AWX. Ansible operator is a Kubernetes operator, which means running it in a pod.

AWX can also alternatively be installed and run in Docker, but this install path is only recommended for development/test-oriented deployments and has no official published release.