Do not pass the SECURITY options when Ubuntu < 22.04.

This commit is contained in:
Andrea Dell'Amico 2024-08-02 13:46:52 +02:00
parent 971c7828ff
commit 1c2d775aa3
Signed by: adellam
GPG Key ID: 147ABE6CEB9E20FF
1 changed files with 4 additions and 0 deletions

View File

@ -22,4 +22,8 @@ SECURITY=""
# Start Tomcat
{% if ansible_distribution_version is version_compare('22.04', '<') %}
cd $CATALINA_BASE && exec $CATALINA_HOME/bin/catalina.sh run
{% else %}
cd $CATALINA_BASE && exec $CATALINA_HOME/bin/catalina.sh run $SECURITY
{% endif %}