honatas.tomcat_dev
Apache Tomcat with Manager GUI
This is an Ansible role that installs Apache Tomcat as a systemd service with a graphical user interface (GUI) for management. The GUI can be accessed remotely, so it's not ideal for production use.
Requirements
You need to have Java installed to run Tomcat. The installation of Java is not included in this role, giving you the freedom to choose your preferred method. Make sure you have Java installed before using this role. If you’d like a suggestion, consider using the openjdk-ppa role.
Role Variables
tomcat_version: Version of Tomcat you want to install.
default: 9.0.34tomcat_linux_user: The user account under which Tomcat will operate.
default: vagranttomcat_install_dir: Directory where Tomcat will be installed.
default: /home/{{ tomcat_linux_user }} (which translates to /home/vagrant)tomcat_manager_gui_username: Username for the GUI.
default: admintomcat_manager_gui_password: Password for the 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 }
Using a different user and folder (ensure the folder exists and the user has permissions):
roles:
- role: honatas.tomcat_dev
tomcat_linux_user: myuser
tomcat_install_dir: /opt
Dependencies
None.
License
This project is under the MIT License.
Contributions
Feel free to open issues or submit pull requests anytime. I really mean it!
Also, if you appreciate my work, I enjoy coffee.
Ansible role for installing Apache Tomcat with the Manager GUI enabled.
ansible-galaxy install honatas.tomcat_dev