Role Detail

geerlingguy.tomcat6

Tomcat 6 for RHEL/CentOS and Debian/Ubuntu.
Downloads
582
Type Ansible
Minimum Ansible Version 1.8
Installation $ ansible-galaxy install geerlingguy.tomcat6
Tags
development
web
Last Commit
Last Imported
Version History
Version Release Date
1.1.0
1.0.7
1.0.6
1.0.5
1.0.4
1.0.3
1.0.2
1.0.1
1.0.0
OS Platforms
Platform Version
Debian etch
Debian jessie
Debian lenny
Debian sid
Debian squeeze
Debian stretch
Debian wheezy
EL 6
EL 7
Ubuntu artful
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
Ubuntu zesty
Dependencies
Role
Last 10 Imports
Completed Status
SUCCESS
SUCCESS
SUCCESS
SUCCESS
SUCCESS
SUCCESS
SUCCESS
FAILED
FAILED
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.

Requirements

None.

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.

Dependencies

  • geerlingguy.java (Installs Java for CentOS 6.x).

Example Playbook

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

Inside vars/main.yml:

tomcat6_hostname: example.com
tomcat6_catalina_port: 8080

License

MIT / BSD

Author Information

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

None