zaxos / tomcat-ansible-role

Ansible role to install and configure Apache Tomcat on CentOS/RHEL
GNU General Public License v2.0
37 stars 110 forks source link

Build Status Ansible Galaxy

tomcat-ansible-role

Ansible role to install and configure Apache Tomcat on CentOS/RHEL.

Requirements

Installation

$ ansible-galaxy install zaxos.tomcat-ansible-role

Example Playbook

- hosts: servers
  become: true
  vars:
    tomcat_version: 8.5.23

    tomcat_permissions_production: True

    tomcat_users:
      - username: "tomcat"
        password: "t3mpp@ssw0rd"
        roles: "tomcat,admin,manager,manager-gui"
      - username: "exampleuser"
        password: "us3rp@ssw0rd"
        roles: "tomcat"        
  roles:
    - role: zaxos.tomcat-ansible-role

Role Variables

The main variable:

Some variables that require review:

File permissions:

Tomcat ports:

Tomcat AJP:

Some defaults (probably not requiring tampering):

Custom templates for server.xml, users.xml, systemd service file, etc.:

Optional variables (by default undefined):

In case of uninstallation:

Variables for Disconnected remote environment: