From 6c2d5c52c80d5312f9d3cea83f42daac9ade4094 Mon Sep 17 00:00:00 2001 From: Kevin Veen-Birkenbach Date: Thu, 28 Aug 2025 21:16:04 +0200 Subject: [PATCH] Attached 'not (system_service_suppress_flush | bool)' directly to handler --- roles/sys-service/handlers/main.yml | 5 +++-- roles/sys-service/tasks/05_service.yml | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) 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)