ARTH β€” Task 12.1 πŸ‘¨β€πŸ’»

Chirag Agarwal
Jan 21, 2021

Task Description πŸ“ƒ

12.1 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.

Setting Up Apache Server and HAProxy using Ansible Playbook

Run the following playbook to Set up Apache and HAProxy.

Use this file as haproxy.cfg.j2

Inventory File

From this file, IP’s will be added dynamically in the configuration file.

Run the Playbook.

So here our playbook run successfully!!!

Our Load Balancer and Web Servers are working perfectly.

Thankyou!!!!!!!!!!!!!

--

--