diff --git a/roles/sys-service/handlers/main.yml b/roles/sys-service/handlers/main.yml index d9cdadb8..f5602a23 100644 --- a/roles/sys-service/handlers/main.yml +++ b/roles/sys-service/handlers/main.yml @@ -4,5 +4,6 @@ daemon_reload: yes enabled: yes state: "{{ system_service_state }}" - async: "{{ ASYNC_TIME if ASYNC_ENABLED | bool else omit }}" - poll: "{{ ASYNC_POLL if ASYNC_ENABLED | bool else omit }}" + async: "{{ ASYNC_TIME if ASYNC_ENABLED | bool else omit }}" + poll: "{{ ASYNC_POLL if ASYNC_ENABLED | bool else omit }}" + when: not (system_service_suppress_flush | bool) diff --git a/roles/sys-service/tasks/05_service.yml b/roles/sys-service/tasks/05_service.yml index 9d3eb5e9..6c5b4296 100644 --- a/roles/sys-service/tasks/05_service.yml +++ b/roles/sys-service/tasks/05_service.yml @@ -46,5 +46,5 @@ command: /bin/true notify: refresh systemctl service when: not system_service_uses_at - when: (SYS_SERVICE_ALL_ENABLED | bool or system_force_flush | bool) and not system_service_suppress_flush | bool + when: (SYS_SERVICE_ALL_ENABLED | bool or system_force_flush | bool)