Skip to content

Install Ansible

This page gives the quickest practical ways to install Ansible on common platforms.

Linux with pip

pip install ansible

Ubuntu and Debian

sudo apt update
sudo apt install ansible

macOS with Homebrew

brew install ansible

Windows

Use Ansible inside WSL with Ubuntu or Debian. That is the most practical and widely supported setup.

Verify the Installation

ansible --version

Practical Advice

  • Use one installation method per environment
  • Prefer package manager installs for simple lab systems
  • Prefer a controlled Python environment if you need version-specific behavior

Warning

Do not mix pip and OS package installs in the same environment unless you know exactly why.