Fix the check on the systemd reload.

This commit is contained in:
Andrea Dell'Amico 2024-08-01 14:37:17 +02:00
parent b20b6409ae
commit 0955bf4d73
Signed by: adellam
GPG Key ID: 147ABE6CEB9E20FF
1 changed files with 1 additions and 3 deletions

View File

@ -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