LoadBalancing Setup using Ansible

LoadBalancing Setup using Ansible

Hello this is Milind Verma and in this article I am going to show the Load Balancing Setup using Ansible.

Some of prerequisites are:

  • ansible must be installed and the ansible.cfg and inventory must be already setup

ANSIBLE.CFG

No alt text provided for this image

INVENTORY FILE

No alt text provided for this image

lets start making the playbook.

No alt text provided for this image
No alt text provided for this image

Now lets start creating the Handlers

No alt text provided for this image

Lets now see the haproxy.cfg.j2 template file

No alt text provided for this image

Now finally run the playbook.

No alt text provided for this image
No alt text provided for this image
No alt text provided for this image
No alt text provided for this image

So finally our playbook is running successfully.

Lets check the output:

Finally I would like to thanks to Mr. Vimal Daga sir and the whole LW team for the knowledge that you have given to us.




































































Ganesh Chippa

Fresher | CCNA | CCNP ENRASI | RHCSA | RHCE |

4 年

Great job

回复
Suhith Resutha Jayasekara

Stamp IG ???? |DevOps/Technical Support Engineer???????????? | 6 x RedHat | 1 x HashiCorp | 1 x Azure |

4 年

Well done

回复

要查看或添加评论,请登录

Milind Verma的更多文章

  • Red Hat OpenShift Deployment on AWS via ROSA Service

    Red Hat OpenShift Deployment on AWS via ROSA Service

    Hello everyone, welcome to my article. In this article, I will cover: what's Red Hat OpenShift Service on AWS (ROSA)?…

    10 条评论
  • JavaScript - "An Integral Part of Modern Apps"

    JavaScript - "An Integral Part of Modern Apps"

    Let’s see what’s so special about JavaScript, what we can achieve with it, and what other technologies play well with…

  • Cyber Crimes & Confusion Matrix

    Cyber Crimes & Confusion Matrix

    Cybercrime is vastly growing in the world of tech today. Criminals of the World Wide Web exploit internet users’…

  • AWS S3 Multipart Uploading

    AWS S3 Multipart Uploading

    Hello Guys, I am Milind Verma and in this article I am going to show how you can perform multipart upload in the S3…

  • ARTH TASK-6

    ARTH TASK-6

    OUR TASK: Create High Availability Architecture with AWS CLI The architecture includes- Webserver configured on EC2…

  • How Google uses Machine Learning

    How Google uses Machine Learning

    Google is the master of all. It takes advantage of machine learning algorithms and provides customers with a valuable…

  • Kubernetes CASE STUDY: Pearson

    Kubernetes CASE STUDY: Pearson

    Challenge A global education company serving 75 million learners, Pearson set a goal to more than double that number…

  • Launching webserver and python using Docker Conatiner

    Launching webserver and python using Docker Conatiner

    Our task: launching the HTTPD server over the docker container setting up the python interpreter and running python…

    2 条评论
  • Integrating LVM with Hadoop and providing Elasticity to DataNode Storage

    Integrating LVM with Hadoop and providing Elasticity to DataNode Storage

    In this article I am going to show you , how can we integrate the Hadoop with the LVM. First we will launch 2 EC2…

    1 条评论
  • Netflix Case Study on top of AWS

    Netflix Case Study on top of AWS

    NETFLIX Netflix is an American media services provider and production company headquartered in Los Gatos, California…

社区洞察

其他会员也浏览了