ARTH β Task 12.1 π¨βπ»
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.