From 2887e54cca09d7892e4cd771dbd35378a98223fc Mon Sep 17 00:00:00 2001 From: Kevin Veen-Birkenbach Date: Tue, 19 Aug 2025 01:48:43 +0200 Subject: [PATCH] Solved path bug --- roles/sys-systemctl/tasks/05_service.yml | 4 +++- roles/sys-systemctl/templates/systemctl.service.j2 | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/roles/sys-systemctl/tasks/05_service.yml b/roles/sys-systemctl/tasks/05_service.yml index 1fd7de30..a8658c53 100644 --- a/roles/sys-systemctl/tasks/05_service.yml +++ b/roles/sys-systemctl/tasks/05_service.yml @@ -39,7 +39,9 @@ - name: refresh systemctl service when SYS_SERVICE_ALL_ENABLED command: /bin/true - notify: "refresh systemctl service" + notify: + - reload system daemon + - refresh systemctl service when: - SYS_SERVICE_ALL_ENABLED | bool - not systemctl_uses_at diff --git a/roles/sys-systemctl/templates/systemctl.service.j2 b/roles/sys-systemctl/templates/systemctl.service.j2 index 2e00f7cd..1eb32fab 100644 --- a/roles/sys-systemctl/templates/systemctl.service.j2 +++ b/roles/sys-systemctl/templates/systemctl.service.j2 @@ -4,4 +4,4 @@ OnFailure={{ SYS_SERVICE_ON_FAILURE_COMPOSE }} [Service] Type=oneshot -ExecStart=/bin/bash {{ systemctl_id | get_service_script_path( service_src | filetype ) }} +ExecStart=/bin/bash {{ systemctl_id | get_service_script_path( service_src | basename | regex_replace('\\.j2$', '') | filetype ) }}