Use Ansible playbook to Configure Reverse Proxy i.e. Haproxy and update it’s configuration file automatically on each time new Managed node (Configured With Apache Webserver) join the inventory.Doing this setup using AWS instance.

Jayesh Kumar
Jan 14, 2021

--

Here we are going to create a reverse proxy server using AWS instance launched through ansible playbook . And we will also automate the Haproxy configuration file so that any IP come up it automatically update it self .

STEP 1: Creating ansible playbook updating our html page and installing httpd package in instances

STEP 2: Updating the Haproxy configuration file with the help of jinja code , so that IP automatically get updated .

STEP 3: creating playbook to access AWS and launch instances over there

STEP 4: Updating our IP file .

STEP 5 : Finally running our ansible playbook

STEP 6: Here is the result of our code

--

--

Jayesh Kumar
Jayesh Kumar

Written by Jayesh Kumar

Btech ECE pursuing student ....Arth Learner

No responses yet