Loading

Quipoin Menu

Learn • Practice • Grow

ansible / Installing Ansible
tutorial

Installing Ansible

To start using Ansible, you need to install it on your control node (your local machine or a dedicated server). The managed nodes do not require any Ansible installation – only Python and SSH.

Prerequisites

  • Python 3.8 or later on the control node.
  • SSH access to managed nodes (with key‑based authentication).
  • Python on managed nodes (Python 2.7 or 3.5+).

Installing on Linux (Ubuntu/Debian)

Using the official PPA:
sudo apt update
sudo apt install software-properties-common
sudo add-apt-repository --yes --update ppa:ansible/ansible
sudo apt install ansible
Using pip (Python package manager):
pip install ansible

Installing on macOS

Using Homebrew:
brew install ansible
Or using pip:
pip install ansible

Installing on Windows

Ansible does not run natively on Windows as a control node. Use Windows Subsystem for Linux (WSL) or a virtual machine with Linux. Install in WSL using the Ubuntu instructions above.

Verifying Installation

Check Ansible version:
ansible --version

Testing Connectivity to Managed Nodes

After installation, test that Ansible can reach a managed node using SSH (passwordless key setup is recommended). First, create an inventory file (will be covered next) or use the -i flag:
ansible -i "192.168.1.10," -m ping all


Two Minute Drill
  • Ansible control node requires Python; managed nodes need Python and SSH.
  • Install via apt (Ubuntu), brew (macOS), or pip (any OS).
  • Windows is not supported as a control node; use WSL or VM.
  • Verify with ansible --version.

Need more clarification?

Drop us an email at career@quipoinfotech.com