ansible-role-tomcat/templates
Andrea Dell'Amico 694b91e00a
Add SSL/TLS certificate support and improve connector configuration.
- Add tasks/tomcat-certs.yml: copies cert and key from letsencrypt or mkcert
  source directories into a tomcat-readable location, installs the acme.sh
  renewal hook script.
- Add templates/tomcat-letsencrypt-hook.j2: shell hook called by acme.sh on
  renewal; uses cmp to detect changes and restarts tomcat only when needed.
- Add handlers for 'letsencrypt cert renewed': copy fullchain and key then
  notify tomcat restart; triggered via listen from any task in the same play.
- Add HTTPS connector to tomcat-server.xml.j2: Http11NioProtocol with
  SSLHostConfig on Tomcat 9+, Http11AprProtocol with inline attributes on
  Tomcat 7/8; both connectors share the named Executor thread pool.
- Improve HTTP connector: explicit Http11NioProtocol, remove attributes
  ignored when an Executor is referenced (maxThreads, maxQueueSize),
  replace disableUploadTimeout with connectionUploadTimeout, make
  connectionTimeout and maxHttpHeaderSize variables, drop useBodyEncodingForURI.
- Move Executor definition outside tomcat_http_enabled guard so it is present
  whenever any connector is active; move acceptCount to each Connector.
- Add tomcat_http_disable_when_ssl to suppress the HTTP connector when SSL
  is active.
- Add new defaults: tomcat_ssl_*, tomcat_connection_timeout,
  tomcat_upload_timeout, tomcat_max_http_header_size, tomcat_ssl_port,
  tomcat_ssl_protocols, tomcat_executor_accept_count,
  tomcat_executor_min_spare_threads.
- Rewrite README.md with full variable documentation and example playbooks.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-03-06 18:28:10 +01:00
..
catalina.properties.j2 Customization of catalina.properties. 2022-07-05 15:29:37 +02:00
jmxremote.passwd.j2 First import of the old role. 2020-06-01 18:55:11 +02:00
log4j.properties.j2 First import of the old role. 2020-06-01 18:55:11 +02:00
tomcat-default.j2 Use version_compare for the version comparisons. 2024-07-22 11:22:58 +02:00
tomcat-letsencrypt-hook.j2 Add SSL/TLS certificate support and improve connector configuration. 2026-03-06 18:28:10 +01:00
tomcat-server.xml.j2 Add SSL/TLS certificate support and improve connector configuration. 2026-03-06 18:28:10 +01:00
tomcat-service.j2 Dupicated option. 2024-07-31 12:57:58 +02:00
tomcat-start.sh.j2 Add some tasks that add a systemd unit when it's not part of the package. 2024-07-24 18:19:10 +02:00
tomcat-users.xml.j2 First import of the old role. 2020-06-01 18:55:11 +02:00
tomcat-web.xml.j2 First import of the old role. 2020-06-01 18:55:11 +02:00
tomcat_access.logrotate.j2 First import of the old role. 2020-06-01 18:55:11 +02:00