Lab resource for Ansible Multiple Servers
ansible all -m ping --ask-pass
the password is: vagrant
ansible-playbook apache.yml --ask-pass
#Install Haproxy ansible-playbook haproxy.yml --ask-pass
as root user: sudo vi /etc/hosts
add an address below: 10.0.15.16 example.com
#Test your load balancer using apache2-utils
- Install apache2-utils : sudo apt-get install apache2-utils
- run ab -n 1000 -c 1000 http://example.com
Take a look at the load in http://10.0.15.16:81 or http://example.com:81
- Automate the haproxy installation.
- Using different workload, check the availability of the load balancer.
- Upload your report to your github space.