HTTPD AND HAPROXY VIA ANSIBLE ROLES !
Apr 30, 2021
TASK 15:-
🔅Create an ansible role myapache to configure Httpd WebServer.
🔅Create another ansible role myloadbalancer to configure HAProxy LB.
🔅We need to combine both of these roles controlling webserver versions and solving challenge for host ip’s addition dynamically over each Managed Node in HAProxy.cfg file.
As per requirement i have created both of the roles in which i am using ansible facts to dynamically update the haproxy.cfg file which will fetch the webserver’s ip from inventory file so it will be updated dynamically !
we will use a file which will run the both of the roles and setup the required environment !