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