tomcat_dev

Apache Tomcat with Manager GUI

GitHub Travis Ansible Quality Score coffee

Ansible role for installing Apache Tomcat as a systemd service with the Manager GUI enabled. Remote access to the GUI is allowed, so this role is not recommended for production environments.

Requirements

Tomcat needs a Java installation in order to run. Since there are a number of ways to do it, this was not added as a dependency to this role, so you have more freedom of choice. Therefore, you must ensure you have Java installed prior to running this role. If you allow me, I can suggest the openjdk-ppa role for that purpose.

Role Variables

tomcat_version: The version you want installed.
default: 9.0.34

tomcat_linux_user: The username under which Tomcat will run.
default: vagrant

tomcat_install_dir: Installation folder.
default: /home/{{ tomcat_linux_user }} (which translates to /home/vagrant)

tomcat_manager_gui_username: Username of the Manager GUI
default: admin

tomcat_manager_gui_password: Password of the Manager GUI
default: admin

Example Playbooks

Default installation

roles:
  - honatas.tomcat_dev

With Java

roles:
  - honatas.openjdk_ppa
  - honatas.tomcat_dev

Another version

roles:
  - { role: honatas.tomcat_dev, tomcat_version: 9.0.20 }

Another user and a different folder (make sure the folder is created and the user has permission)

roles:
  - role: honatas.tomcat_dev
    tomcat_linux_user: myuser
    tomcat_install_dir: /opt

Dependencies

None.

License

MIT

Contributions

Feel free to open an issue or add a pull request. Anytime. Really, I mean it.

Also, if you like my work, I'll let you know that I love coffee.

About

Ansible role for installing Apache Tomcat with the Manager GUI enabled.

Install
ansible-galaxy install Honatas/ansible-role-tomcat-dev
GitHub repository
License
mit
Downloads
133