Role Detail


Tomcat 6 for RHEL/CentOS and Debian/Ubuntu.
Type Ansible
Minimum Ansible Version 1.8
Installation $ ansible-galaxy install geerlingguy.tomcat6
Last Commit 2017-01-22 02:03:02 AM UTC
Last Imported 2017-01-22 04:29:04 AM UTC
Version History
Version Release Date
1.1.0 2016-11-17 20:00:08 PM
1.0.7 2016-02-17 02:46:02 AM
1.0.6 2014-09-27 04:38:04 AM
1.0.5 2014-07-14 14:17:02 PM
1.0.4 2014-06-04 13:35:01 PM
1.0.3 2014-05-08 14:26:02 PM
1.0.2 2014-03-17 02:37:02 AM
1.0.1 2014-03-14 17:10:05 PM
1.0.0 2014-03-05 15:14:03 PM
Supported Platforms
Platform Version
Debian etch
Debian jessie
Debian lenny
Debian sid
Debian squeeze
Debian stretch
Debian wheezy
EL 6
EL 7
Ubuntu lucid
Ubuntu maverick
Ubuntu natty
Ubuntu oneiric
Ubuntu precise
Ubuntu quantal
Ubuntu raring
Ubuntu saucy
Ubuntu trusty
Ubuntu utopic
Ubuntu vivid
Ubuntu wily
Ubuntu xenial
Ubuntu yakkety
Last 10 Imports
Completed Status
2017-01-22 04:29:04 AM UTC SUCCESS
2016-11-17 20:03:08 PM UTC SUCCESS
2016-11-17 20:03:08 PM UTC SUCCESS
2016-11-02 20:22:08 PM UTC SUCCESS
2016-09-25 23:36:11 PM UTC SUCCESS
2016-03-09 05:01:05 AM UTC SUCCESS
2016-02-17 02:51:02 AM UTC FAILED
2016-02-17 02:51:02 AM UTC FAILED
2016-01-27 18:17:06 PM UTC SUCCESS

Ansible Role: Tomcat 6

DEPRECATION NOTICE: Tomcat 6's EOL is December 31, 2016, meaning there will no longer be support or security updates from the Apache Software Foundation. This role will remain on Galaxy for historical purposes, but you should migrate to newer versions or otherwise update your software ASAP!

Build Status

An Ansible Role that installs Tomcat 6 on RedHat/CentOS and Debian/Ubuntu Linux servers.



Role Variables

Available variables are listed below, along with default values (see defaults/main.yml):

tomcat6_enabled: true

Whether Tomcat 6 should be started at boot (as well as at the time this playbook is run). Set to false if you would like to leave Tomcat 6 installed but not running, or want to control it on your own.

tomcat6_server_port: 8005

The port on which the Tomcat 6 server itself will run (not the difference between this and the tomcat6_catalina_port).

tomcat6_hostname: localhost

The hostname for this server. localhost works fine for many Tomcat web applications which are not dependent on a particular hostname being set (e.g. Apache Solr).

tomcat6_catalina_port: 8983

The port on which Catalina will listen for requests. (This is the port through which webapps will be accessible).

tomcat6_catalina_redirect_port: 8443

This is the port to which requests will be redirected if they come in on a non-SSL port, but are required to be secure via a security constraint.


  • (Installs Java for CentOS 6.x).

Example Playbook

- hosts: webservers
    - vars/main.yml
    - { role: geerlingguy.tomcat6 }

Inside vars/main.yml:

tomcat6_catalina_port: 8080



Author Information

This role was created in 2014 by Jeff Geerling, author of Ansible for DevOps.