Created by Akanksha

Configure Apache Web Server, HAPROXY and further Auto-Register Backend Server IPs to HAPROXY using Ansible

roles controlling webserver versions and solving challenge for host IPs addition dynamically over each Managed Node in HAPROXY.cfg file which increases the scalability and high availability of our site…

🤔 What Ansible is ?

🤔 Why we are using HAPROXY ?

🤔 What is the work of Apache HTTP Server ?

Let’s Brief our Plan before Proceeding further:

Pre-Requisite:

# mkdir haproxy-ansible
# cd haproxy-ansible
# mkdir roles
# vim ansible.cfg
# mkdir roles
# cd roles
# ansible-galaxy init web
# ansible-galaxy init lbrole
# cd role/web/tasks
# vim main.yml
tasks.yml
# cd role/web/vars
# vim main.yml
var.yml
# cd role/web/files
index.html
# cd role/lbrole/tasks
# vim main.yml
tasks.yml
# cd role/lbrole/template
# cd role/lbrole/vars
# vim main.yml
# cd haproxy_ansible/
# vim setup.yml
# ansible-playbook setup.yml 

Thanks for reading. Hope this blog have given you some valuable inputs!!

(: — )

Technology enhancement take a journey of learning and exploring!! On a way to achieve and Follow my own star!!