Ansible Role flxpeters.tomcat8
Install Tomcat 8 on Ubuntu >= 16.04 from archive with systemd
Requirements
This role depends on existing Java installation. The java installation is not part of this role.
You must define the JAVA_HOME in the tomcat_java_home
variable.
Role Variables
tomcat_java_home
The path to your java installation. This variable is required in the systemd service file.
Dependencies
A running Java installation like open-jdk-8.
Example Playbook
Including an example of how to use your role (for instance, with variables passed in as parameters) is always nice for users too:
- hosts: servers
roles:
- { role: FlxPeters.tomcat8, tomcat_java_home: /path/to/java/jre }
Test
This roles uses Molecule to test. You can run the tests like this:
molecule test
License
MIT / BSD