Installing Ansible on Ubuntu 22.04

Hi there! I'm Dinesh, a passionate Cloud and DevOps enthusiast. I love to dive into the latest new technologies and sharing my journey through blog.
Search for a command to run...

Hi there! I'm Dinesh, a passionate Cloud and DevOps enthusiast. I love to dive into the latest new technologies and sharing my journey through blog.
No comments yet. Be the first to comment.
1. Difference between Docker and Kubernetes Docker → Builds and runs containers.Kubernetes → Orchestrates containers across multiple nodes. Key points: Docker = container runtime. Kubernetes = container orchestration tool. Kubernetes provides auto...
In this session, we learn how to monitor a Kubernetes cluster using Prometheus and Grafana.This is not just theory — there is a GitHub repository containing all installation commands and demo steps.The repo will also be enhanced later with advanced K...
1. What is a ConfigMap in Kubernetes? A ConfigMap is used to store non-sensitive configuration data that your application needs — such as: Database port Connection type Any general configuration values In normal applications (non-Kubernetes), de...
Kubernetes normally supports built-in resources like: Deployment Service Pod ConfigMap Secret Ingress These are called native resources. Sometimes companies (Istio, ArgoCD, Prometheus Operator, Kyverno, etc.) want to add new features that Kub...
1. Why Kubernetes Services Are Needed When a Pod is created in Kubernetes, it receives a dynamic IP address.If the Pod dies and restarts, its IP changes.So other Pods (like checkout → payments) cannot rely on Pod IP because it changes, creating issue...
Ansible is an open-source automation tool that simplifies configuration management, application deployment, and task automation.
Step 1: Update the System Package
sudo apt update

Step 2: Install Python
Ansible requires Python, so you need to install Python and pip, the Python package manager:
sudo apt install -y python3 python3-pip

Verify the Python installation by checking the version:
python3 --version

Step 3: Add the Ansible PPA (Personal Package Archive)
To install the latest version of Ansible, add the official Ansible PPA to your system:
sudo apt update

Add the Ansible PPA (Personal Package Archive)
sudo apt install -y software-properties-common
sudo add-apt-repository --yes --update ppa:ansible/ansible

Step 4: Install Ansible
With the PPA added, you can now install Ansible:
sudo apt install -y ansible

Verify the Installation:
To ensure Ansible is installed correctly, check its version:
ansible --version
