How to install Ansible on Ubuntu | Setup Ansible on Ubuntu Ec2 | Ansible Installation on Ubuntu EC2

Published: 29 October 2020
on channel: DevOps Coach
14,862
95

Ansible is #1 configuration management tool. It can also be used for infrastructure provisioning as well. or You can use Ansible in combination of Terraform which can take care of infra automation and Ansible can do configuration management.

https://www.coachdevops.com/2020/04/i...

The best way to install Ansible for Ubuntu is to add the project's PPA (personal package archive) to your system. You also would need Boto framework for provisioning resources in AWS cloud.

Update Repository by including the official project’s PPA

sudo apt-get update
sudo apt-add-repository -y ppa:ansible/ansible

then you need to refresh the package by executing the below command:
sudo apt-get update

Now you can install Ansible:
sudo apt-get install -y ansible

sudo apt install python-pip -y
( this is just comment - Package manager for python)

Install Boto Framework - AWS SDK
sudo pip install boto boto3
Ansible will access AWS resources using boto SDK.

sudo apt-get install python-boto -y
pip list boto | grep boto
(the above command should display below output)
Ignore warning in Red color.

ansible --version


Watch video How to install Ansible on Ubuntu | Setup Ansible on Ubuntu Ec2 | Ansible Installation on Ubuntu EC2 online without registration, duration hours minute second in high quality. This video was added by user DevOps Coach 29 October 2020, don't forget to share it with your friends and acquaintances, it has been viewed on our site 14,862 once and liked it 95 people.