Installing Ansible on ubuntu (AWS EC2 instance ami-0a91cd140a1fc148a)
We are using PIP3 for the installation process
Since our preferred os for the tutorial is Ubuntu we need to run the below commands anyway
# sudo -i - to escalate the root user
# apt update - we will get the details for all updated packages
# apt install python3-pip - We are using the pip3 version comes with python3
# pip3 --version - To check the installed version of pip we can use the below-mentioned command
pip 20.0.2 from /usr/lib/python3/dist-packages/pip (python 3.8)
# pip3 install ansible - Now let's install Ansible Using pip3
# ansible --version - To check the installed version of Ansible we can use the below mentioned command
ansible 2.10.3
config file = None
configured module search path = ['/root/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules']
ansible python module location = /usr/local/lib/python3.8/dist-packages/ansible
executable location = /usr/local/bin/ansible
python version = 3.8.5 (default, Jul 28 2020, 12:59:40) [GCC 9.3.0]
If we get this output that means Ansible is sucessfully installed in our Ubuntu machine