Install Ansible on Ubuntu 22.04
The easiest way to install Ansible on Ubuntu 22.04 is to use apt to do it. Here are the steps that I use to install Ansible on Ubuntu 22.04:
Add the ansible ppa to apt by running:
sudo apt-add-repository -y ppa:ansible/ansible
Update Apt by running:
sudo apt-get update
Install Ansible by running:
sudo apt-get install -y ansible
Check the Ansible version by running:
ansible –version
The version of Ansible installed on the server will be displayed:
That is it Ansible is now installed and ready to use.