Installs Tomcat v8.5 on RHEL/CentOS 7 with ansible.
The goal here is to provide a standalone tomcat role that can be added into your playbooks.
The ansible role allows you to install, for the moment, the version 8.5 of Tomcat.
You can use this ansible role to set up java:
Available variables are listed below, along with default values (see defaults/main.yml
):
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 set variables related to tomcat here.
java_home: '/lib/jvm/jre-1.8.0-openjdk'
- geerlingguy.java
- hosts: tomcat
become: true
roles:
- role: geerlingguy.java
- role: cetic.tomcat
testing locally with Vagrant
You can test this ansible role by using vagrant
. See the Vagrantfile.
See the playbook used for Travis CI tests (tests/test.yml).
- Provide more recent/different versions of Tomcat
- More OS support
Feel free to contribute.
MIT License https://github.com/cetic/ansible-role-tomcat8.5/blob/master/LICENSE