From 5daaa1f33aba9bfd72b4624c7f5a319347862431 Mon Sep 17 00:00:00 2001
From: Hannes Braun <hannes.braun@slub-dresden.de>
Date: Mon, 17 Jun 2024 10:59:27 +0200
Subject: [PATCH] Rearange block to handle notify correctly

---
 tasks/main.yml | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/tasks/main.yml b/tasks/main.yml
index 0773885..1239ff6 100644
--- a/tasks/main.yml
+++ b/tasks/main.yml
@@ -1,6 +1,5 @@
 ---
 - name: Upload files and enable timer
-
   block:
     - name: Uploading service file
       template:
@@ -23,9 +22,9 @@
     - name: Enabling timers
       systemd:
         name: "{{ item.key }}.timer"
-        state: restarted
         enabled: true
         masked: false
         scope: "{{ systemd_scope | default('system') }}"
       with_dict: "{{ timers }}"
-      notify: Reload systemd
+  notify: Reload systemd
+  become: true
-- 
GitLab