apt update
apt install ansible
dnf install epel-release
dnf install ansible
zypper install ansible
sudo apt update
sudo apt install ansible
If you choose the distribution package as described, you will get the following version of Ansible:
Distribution | Ansible Version |
---|---|
Debian 12 | 7.3.0 |
Debian 11 | 2.10.8 |
Rocky 9 | 7.7.0 |
Rocky 8 | 8.3.0 |
openSUSE Leap 15 | 2.9.27 |
Ubuntu 24.04 | 9.2.0 |
Ubuntu 22.04 | 2.10.8 |
On systems with outdated versions (such like openSUSE) you may prefer the installation via Python PIP:
- Install the
python3-pip
distribution package pip3 install ansible
Even this will not always get you the newest version, because newer Ansible versions require newer versions of Python!