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 Amazon Linux 2023
Automation

How to Install Ansible on Amazon Linux 2023

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

LB
Luca Berton
ยท 1 min read

Here is how to install Ansible on Amazon Linux 2023 in 2026.

Install

sudo dnf install -y ansible-core

Verify

ansible --version
ansible-playbook --version

Alternative: pip for Latest Version

sudo dnf install -y python3-pip
pip3 install ansible --user
echo 'export PATH=$PATH:$HOME/.local/bin' >> ~/.bashrc
source ~/.bashrc

Post-Installation

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

Free 30-min Production AI consultation

Book Now