Posts

ANSIBLE

Image
  What is ansible ? It is a configuration management tool , open source . Uses YAML scripting . Works on push management . Required architecture : We need to create 1 master node and 3 server nodes Create an instance , Instance name : ansible_master Select ubuntu server 22.04 as amazon machine image . Allocate port — 22 Launch the instance , we have launched 1 master node , we need 3 server nodes select the instance > actions > image and templates > launch more like these Launch 3 instances with the same configurations , And launch instance Change the name of the 3 — instances , Connect to the ansible master instance , Click on the instance > connect Use command , sudo apt update Now install ansible , After configuring the master , we need to ssh with the nodes (node 1 , node 2, node 3) Now lets connect with ansible_server_2 , Go to the master server , use command ssh-keygen  to generate id_rsa.pub Copy the key from id_rsa.pub Now go to the ansible _server_2 instan...