Configuring reverse proxy with Ansible and also updating HAProxy conf file each time new node(aws instance)join inventory

Basic Architecture of HAProxy

So What HAProxy actually is..?

In this Inventory I have 2 IP’s , one for Load-balancer and another one for Backend server.

🔹Ansible Configuration file

Ansible Configuration file.
here we can clearly see that our both Managed nodes are connected with Controller node.

🔹HAProxy file configuration

🔹Managed node

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store