This Ansible playbook should give an idea about the configuration management capabilities of Ansible. It sets up a group of Tomcat nodes which are load-balanced by Apache using the Mod-jk module. In addition to this, it also sets up all other dependencies and also configures the installed services to run on startup. Overview of actions performed:
- Update apt-get cache
- Install Apache
- Install Mod-jk module
- Install MySQL
- Install Java
- Download Tomcat and setup nodes
- Edit and configures Tomcat configuration files
- Edit and configures Apache and Mod-jk configuration files
- Restart Apache
- Start Tomcat nodes
Find the playbook in the repo here: https://github.com/slashr/Tomcat-Cluster-Load-Balancing
Comments