cetic.tomcat
Ansible Role: Tomcat v8.5
This role installs Tomcat version 8.5 on RHEL/CentOS 7 using Ansible.
The aim is to provide a simple Tomcat role that you can include in your playbooks.
Currently, this role can install Tomcat version 8.5.
Requirements
To set up Java, you can use this Ansible role:
Role Variables for Tomcat 8.5
Here are the available variables and their default values (see defaults/main.yml
):
tomcat
tomcat_version
: '8.5.31'tomcat_port
: '8080'tomcat_port_ajp
: '8009'tomcat_port_https
: '8443'tomcat_port_shutdown
: '8005'tomcat_group
: 'tomcat'tomcat_user
: 'tomcat'tomcat_user_home
: '/opt/tomcat'
You can customize these Tomcat-related variables here.
geerlingguy java
java_home
: '/lib/jvm/jre-1.8.0-openjdk'
Dependencies
- geerlingguy.java
Example Playbook
- hosts: tomcat
become: true
roles:
- role: geerlingguy.java
- role: cetic.tomcat
Tests
Testing Locally with Vagrant
You can test this Ansible role using vagrant
. Check the Vagrantfile for details.
Testing with Travis
Refer to the playbook used for Travis CI tests (tests/test.yml).
Future Improvements
- Offer newer or different versions of Tomcat
- Support for more operating systems
Contributions are welcome!
License
MIT License Learn more