From 001e23c8972218ef3125413472138ccddf2de294 Mon Sep 17 00:00:00 2001 From: Andrea Dell'Amico Date: Thu, 1 Aug 2024 15:01:32 +0200 Subject: [PATCH] Fix the systemd unit installation check. --- defaults/main.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/defaults/main.yml b/defaults/main.yml index bb17205..ff0f68e 100644 --- a/defaults/main.yml +++ b/defaults/main.yml @@ -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 %}"