Install Ansible on Ubuntu | How to setup Ansible on Ubuntu 22.0.4 | Ansible install on Ubuntu

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.

 
Ansible Architecture:
 



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.

Pre-requisites
Create new Ubuntu EC2 instance for installing Ansible, just open port 22.

Change Host Name to AnsibleMgmtNode
sudo hostnamectl set-hostname 
AnsibleMgmtNode

Update Repository

sudo apt-get update



Install Ansible:
sudo apt install ansible


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


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

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

 

ansible --version



Comments

Popular posts from this blog

Setup build agent/slave VM and Integrate with Jenkins Master

Install SonaType Nexus 3 using Docker Compose