Fix the systemd unit installation check.

This commit is contained in:
Andrea Dell'Amico 2024-08-01 15:01:32 +02:00
parent d3c071f66b
commit 001e23c897
Signed by: adellam
GPG Key ID: 147ABE6CEB9E20FF
1 changed files with 2 additions and 1 deletions

View File

@ -5,7 +5,8 @@
# tomcat_fixed_version: 9
tomcat_pkg_state: present
tomcat_service_enabled: true
tomcat_use_systemd_unit: "{% if ansible_distribution_version is version_compare('18.04', '>=') %}true{{ tomcat_version }}{% else %}false{% endif %}"
tomcat_use_systemd_unit_test: "{% if ansible_distribution_version is version_compare('18.04', '>=') %}true{{ tomcat_version }}{% else %}false{% endif %}"
tomcat_use_systemd_unit: '{{ tomcat_use_systemd_unit_test | bool }}'
tomcat_systemd_security_enhanced: false
tomcat_systemd_security: "{% if tomcat_systemd_security_enhanced %}true{% else %}false{% endif %}"