Installing Ansible on Ubuntu
Installing Ansible on Ubuntu
Wha’ts Ansible?
Ansible is an open source IT automation engine that automates provisioning, configuration management, application deployment, orchestration, and many other IT processes. It is free to use, and the project benefits from the experience and intelligence of its thousands of contributors.
Installing Ansible
1
2
3
4
sudo apt update
sudo apt install software-properties-common
sudo add-apt-repository --yes --update ppa:ansible/ansible
sudo apt install ansible
Checking Ansible version
1
sudo ansible --version
ansible [core 2.12.10]
config file = /etc/ansible/ansible.cfg
configured module search path = ['/root/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules']
ansible python module location = /usr/lib/python3/dist-packages/ansible
ansible collection location = /root/.ansible/collections:/usr/share/ansible/collections
executable location = /usr/bin/ansible
python version = 3.8.10 (default, Jan 17 2025, 14:40:23) [GCC 9.4.0]
jinja version = 2.10.1
libyaml = True
Adding hosts
1
vi /etc/ansible/hosts
[ubuntu]
server1
server2
server3
server4
[redhat]
server1
server2
server3
server4
Sources
Photo by Lenny Kuhne on Unsplash
What is Ansible? https://www.redhat.com/en/ansible-collaborative
Want to thank me?
🤝 Buy me a coffee https://buymeacoffee.com/dbplatz
This post is licensed under CC BY 4.0 by the author.