- Create an Ansible Role to configure Apache Httpd Software on Backend Web Server Remote systems.
- Create an Ansible Role to configure Haproxy LoadBalancer Software on Frontend Server Remote systems.
- Dynamically Update the Haproxy Loadbalancer Configuration file with Backend Apache Httpd webserver IP Addresses and restart its service.
- Install Ansible on local system and this local machine acts as
Master Node
. - Clone this repository on Local Machine and edit
hosts
file to add up IP Addresses of Backend Webserver and Haproxy server. - Edit
Ansible-Haproxy-Role/vars/main.yml
file to tell about Exposed Haproxy LoadBalancer Port Number using variableexposed_port_number
. - Edit
Ansible-Haproxy-Role/vars/main.yml
file to tell about Backend Webserver Port Number using variablewebserver_port
- Copy WebPage you like to deploy on webserver to
roles/Ansible-Httpd-Role/files/
and editroles/Ansible-Httpd-Role/vars/main.yml
to tell about webpage. - Go Inside
Ansible-Httpd-Role/vars/main.yml
folder and editweb_page_deploy
given variable to tell about New WebPage.
ansible-playbook <name_of_playbook>