DevOps Day 13 — Getting Started with Ansible: Installation, Ad-hoc Commands & Playbooks
Welcome to Day 13 of the DevOps Series. As infrastructure grows, managing servers manually becomes difficult and error-prone. This is where Ansible plays a major role in DevOps by enabling automation, consistency, and scalability . In Day 13, we focus on hands-on Ansible basics — from installation to running our first playbook. ✅ What We’ll Learn Today How to install Ansible Why passwordless SSH is required Running Ansible ad-hoc commands Creating inventory files Writing and executing Ansible playbooks Understanding verbose logs Introduction to Ansible roles 🔹 1. Ansible Installation Ansible is usually installed on a control node (your laptop or EC2 instance). On Ubuntu: sudo apt update sudo apt install ansible -y Other platforms: Mac: Homebrew ( brew install ansible ) Windows: Chocolatey (mainly for testing) 📌 Using package managers is recommended because they handle dependencies automatically. Verify installation: ansible --ve...