From d6c465ee559d19ac825bb042ea962401580e458b Mon Sep 17 00:00:00 2001 From: Jason Rothstein Date: Tue, 13 Jul 2021 04:41:51 +0000 Subject: [PATCH] If templates changed, reload systemd always --- handlers/main.yml | 6 ------ 1 file changed, 6 deletions(-) diff --git a/handlers/main.yml b/handlers/main.yml index 88a5ca4..d24275a 100644 --- a/handlers/main.yml +++ b/handlers/main.yml @@ -9,14 +9,8 @@ - ansible_system == 'Linux' - ansible_service_mgr == 'systemd' - ensure_clamav is defined - - ensure_clamav.service_list is defined - - ensure_clamav.service_list is iterable ansible.builtin.systemd: daemon_reload: 'yes' - name: '{{ item.name }}' - loop: '{{ ensure_clamav.service_list }}' - loop_control: - label: '{{ item.name }} will be reloaded' - name: 'ensure_clamav.services' when: - ansible_system == 'Linux'