Posts

Ansible Task 3

Image
TASK 3 ANSIBLE Load Balancer Load balancing  refers to efficiently distributing incoming network traffic across a group of backend servers, also known as a  server farm  or  server pool . Modern high‑traffic websites must serve hundreds of thousands, if not millions, of concurrent requests from users or clients and return the correct text, images, video, or application data, all in a fast and reliable manner. To cost‑effectively scale to meet these high volumes, modern computing best practice generally requires adding more servers. A  load balancer  acts as the “traffic cop” sitting in front of your servers and routing client requests across all servers capable of fulfilling those requests in a manner that maximizes speed and capacity utilization and ensures that no one server is overworked, which could degrade performance. If a single server goes down, the load balancer redirects traffic to the remaining online servers. When a new server is added to the se...

Ansible Task 2

Image
 Ansible Task  2 Task 2 *Statement :* *Deploy Web Server on AWS through ANSIBLE!* ♦️Provision EC2 instance through ansible. ♦️Retrieve the IP Address of instance using dynamic inventory concept. ♦️Configure the web server through ansible! ♦️Create role for webserver to customize the Instance and deploy the webpage to root directory.  *Optional :* *Write a playbook for testing of the tasks.* *For Example: If the task is installation of httpd package then for checking the status of package, ansible has the module named as package_facts.* *just like that search modules for checking status of each task!* *if u don't find any module then command module can be useful* *Complete process have to be automated! Ansible role has a folder named as test, write the testing playbook there! Summary : One Click Instance Launched and Web Server Deployed! Instance lauch through playbook user create and sudo permission key transfer Create New user  key transfer key expose Playbook run a...

Ansible Task1

Image
Ansible Ansible is an open-source software provisioning, configuration management, and application-deployment tool enabling infrastructure as code.It runs on many Unix-like systems, and can configure both Unix-like systems as well as Microsoft Windows. It includes its own declarative language to describe system configuration. Ansible was written by Michael DeHaan and acquired by Red Hat in 2015. Ansible is agentless, temporarily connecting remotely via SSH or Windows Remote Management (allowing remote PowerShell execution) to do its tasks. Task Description Write an Ansible PlayBook that does the following operations in the managed nodes: 🔹 Configure Docker 🔹 Start and enable Docker services 🔹 Pull the httpd server image from the Docker Hub 🔹 Run the httpd container and expose it to the public 🔹 Copy the html code in /var/www/html directory and start the web server. *Additional task for DevOps AL and Hybrid Multi Cloud trainees: 🔹 Configure a Kubernetes Clust...