Monday, August 21, 2023

Install Ansible on Ubuntu | How to setup Ansible on Azure Ubuntu 22.0.4 instance | Ansible install on Azure Ubuntu Virtual Machine

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. We will be setting up Ansible on Azure Ubuntu VM.
 
Ansible Architecture:
 

The best way to install Ansible for Ubuntu is to add the project's PPA (personal package archive) to your system.

Pre-requisites:
Create new Ubuntu VM in Azure Cloud for installing Ansible, just open port 22.

Change host name to AnsibleMgmtNode
sudo hostnamectl set-hostname 
AnsibleMgmtNode

Update Repository
sudo apt-get update

Install Python-pip3
sudo apt install python3-pip -y

Upgrade pip3 sudo pip3 install --upgrade pip

# Install Ansible. pip3 install "ansible==2.9.17"

# Install Ansible azure_rm module for interacting with Azure.
pip3 install ansible[azure]

# Install Ansible.
sudo apt install ansible -y




No comments:

Post a Comment

Coach AK's Master DevSecOps Bootcamp Program Model Information | Master Multi cloud Program Information | AWS Cloud and Azure Cloud DevOps Coaching Program Model Information

(More New Topics..New tools added such as GitHub Actions, Helm, GitHub Advanced Security and Trivy Scanner, CheckOv IAC security ...