Skip to main content
๐Ÿ“ฌ Get weekly Production AI insights Practical notes on Kubernetes, AI infrastructure and platform engineering. No spam. Subscribe free
How to Install Ansible on Ubuntu 24.04
Automation

How to Install Ansible on Ubuntu 24.04

Step-by-step guide to install Ansible on Ubuntu 24.04. Covers package installation, pip install, version management, and first playbook setup.

LB
Luca Berton
ยท 1 min read

Here is how to install Ansible on Ubuntu 24.04 LTS in 2026.

Install from Repository

sudo apt update && sudo apt install -y ansible

Install Latest via PPA

sudo apt-add-repository --yes --update ppa:ansible/ansible
sudo apt install -y ansible

Verify

ansible --version
ansible-playbook --version
ansible-galaxy --version

Alternative: pipx

sudo apt install -y pipx
pipx ensurepath
pipx install --include-deps ansible

Post-Installation

ansible localhost -m ping
ansible-galaxy collection install community.general ansible.posix community.docker

Free 30-min Production AI consultation

Book Now