robertdebock / ansible-role-tomcat

Install and configure tomcat on your system.
https://robertdebock.nl/
Apache License 2.0
46 stars 57 forks source link

Add secretRequired="false" to configuration #28

Closed Hunsu closed 3 years ago

Hunsu commented 3 years ago

Without this config tomcat shows a warning and an error for tomcat 9

robertdebock commented 3 years ago

This can be set using ajp_secret in the tomcat_instances list:

tomcat_instances:
  - name: "{{ tomcat_name }}"
    ajp_secret: "xyz"

Look, this is a snippet of the template:

{% if instance.ajp_secret is defined %}
              secret="{{ instance.ajp_secret }}"
{% else %}
              secretRequired="false"
{% endif %}