Installation

Install Ansible on supported operating systems.

System Requirements

Installing on Ubuntu / Debian


sudo apt update
sudo apt install -y ansible

This installs Ansible from the distribution repositories. For newer versions, consider using the official Ansible PPA.

Installing via pip


python3 -m pip install --user ansible

Installing via pip allows faster access to recent releases but requires careful environment management.

Verifying Installation


ansible --version

Remote Host Preparation

Managed nodes must allow SSH access and have Python installed. Most modern Linux distributions meet these requirements by default.