ARTH — Task 15 👨🏻💻
Jan 17, 2021
Task Description📄
🔅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.
Role for Configuring HTTPD
- Create a Role
- Task File
- Vars File
- Handler File
Role for Configuring HAProxy
- Create a Role
- Task File
- Vars File
- Handler File
- HAProxy Configuration file
PlayBook For HTTP and HAProxy
Inventory File
Ansible Configuration File
Finally, Our WebServer and LoadBalancer have been configured.
We can see that IPs are dynamically added in the HAProxy Configuration File.
This verifies that the playbook setup.yml runs successfully!!!
This also verifies our work as we get the web page!!!