Configuring Haproxy and apache webserver using ansible
Ashish Yadav
Cloud Solution Engineer at HR | ex-Cloud Engineer @ ZNet Technologies | Jenkins(CI/CD pipeline)| AWS Solution Architect
Install ansible with command #pip3 install ansible
configure the httpd to #/etc/ansible/ansible.cfg.
Then make a inventory file that is used to connect with ssh connectio
In a file write code to configure httpd.
In this yml code i have install package , start service, stop firewalld
Then we have the haproxy in that task install haproxy, satart haproxy services and the templates i which Load Balance dyanamically update in the configuration
Then run your playbook "IP ADDRESE"
Go to the web browser to see the contain