Day55 ----> 90DaysOfDevOps Challenge @TWS

Day55 ----> 90DaysOfDevOps Challenge @TWS

Understanding Configuration Management with Ansible

What is Ansible?

Ansible is an open-source automation tool used for configuration management, application deployment, infrastructure orchestration, and task automation. It simplifies complex tasks, enforces system configurations, and helps manage multi-tier applications and cloud resources.

Task-01

  • Installation of Ansible on AWS EC2 (Master Node)

Installation Guide — Ansible Documentation

sudo apt-add-repository ppa:ansible/ansible

sudo apt update

sudo apt install ansible -y

ansible --version

image

Task-02

  • Read more about Hosts file

Getting started with Ansible — Ansible Documentation

Basic components of an Ansible environment include a control node, an inventory of managed nodes, and a module copied to each managed node.

sudo nano /etc/ansible/hosts

ansible-inventory --list -y

image

Task-03

  • Setup 2 more EC2 instances with the same Private keys as the previous instance (Node)

image

image

  • Copy the private key to the master server where Ansible is setup

image

image

  • Try a ping command using ansible to the Nodes.

ansible servers -m ping

image

Happy Learning : )

Day 55 task is complete!

90DaysOfDevOps Tasks👇

github.com/Chaitannyaa/90DaysOfDevOps.git

Chaitannyaa Gaikwad | LinkedIn