Ansible is a simple IT automation system. It handles configuration management, application deployment, cloud provisioning, ad-hoc task execution, network automation, and multi-node orchestration.
It is primarily intended for IT professionals, who use it for application deployment, updates on workstations and servers, cloud provisioning, configuration management, intra-service orchestration, and nearly anything a systems administrator does on a weekly or daily basis
Update package index files
sudo apt update
Add the repository
sudo add-apt-repository --yes --update ppa:ansible/ansible
Install pip and ansible
sudo apt install python3-pip ansible -y
Check version of ansible installed in the system
ansible --version
Terminal output for reference
$ ansible --version
ansible 2.10.8
config file = None
configured module search path = ['/home/ability/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules']
ansible python module location = /usr/lib/python3/dist-packages/ansible
executable location = /usr/bin/ansible
python version = 3.10.12 (main, Jun 11 2023, 05:26:28) [GCC 11.4.0]