From 0955bf4d737266cca0462f59634a5ee8113525fa Mon Sep 17 00:00:00 2001 From: Andrea Dell'Amico Date: Thu, 1 Aug 2024 14:37:17 +0200 Subject: [PATCH] Fix the check on the systemd reload. --- tasks/main.yml | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/tasks/main.yml b/tasks/main.yml index b88c73b..4daf428 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -273,9 +273,7 @@ - name: Reload the systemd daemon if we are running on a systemd-backed server ansible.builtin.systemd: daemon-reload: true - when: - - ansible_service_mgr == 'systemd' - - tomcat_use_systemd_unit + when: reload_systemd tags: ['tomcat', 'tomcat_instances', 'tomcat_init'] - name: Install the helper script used by the systemd unit