From 8db48db35b4530cd4a749b0372742b65b1c46be8 Mon Sep 17 00:00:00 2001
From: Hannes Braun <hannes.braun@slub-dresden.de>
Date: Wed, 26 Jul 2023 10:33:11 +0200
Subject: [PATCH] Fixed multiple format warnings from lint

---
 defaults/main.yml | 30 +++++++++++++++---------------
 tasks/main.yml    | 36 ++++++++++++++++++------------------
 2 files changed, 33 insertions(+), 33 deletions(-)

diff --git a/defaults/main.yml b/defaults/main.yml
index fd686f1..f3e747a 100644
--- a/defaults/main.yml
+++ b/defaults/main.yml
@@ -1,16 +1,16 @@
 timers:
-  # timername:
-    # timer_precommand: pre-command before command (well done sherlock)
-    # timer_command: which command or script to execute
-    # timer_user: under which users the timer_command is executed. Default: root
-    # timer_OnCalendar: "*-*-* *:*:*" for example: *-*-* *:*:00 -> every minute
-    #                   Day Of the week  Year-Month-Date  Hour:Minute:Second
-    # timer_AccuracySec: Timer have a default accuracy of round about one minute. You can set the accuracy with this var.
-    # timer_persistent: Takes a boolean argument. If true, the time when the service unit was last triggered is stroed on disk. When the timer is activated, 
-    #                   the service unit is triggered immediately if it would have been triggered at least once during the time when the timer was inactive. 
-    #                   This is useful to catch up on missed runs of the service when the machine was off.
-    #                   Note that this setting only has an effect on timers configured with OnCalendar=.Defaults to false.
-    # timer_OnActiveSec: relative time after the timer unit was last activated
-    # timer_OnBootSec: Relative time after the computer was booted
-    # timer_OnStartupSec: Relative time after systemd was started
-    # timer_OnUnitActiveSec: Relative time after the service unit was last activated
\ No newline at end of file
+# timername:
+#   timer_precommand: pre-command before command (well done sherlock)
+#   timer_command: which command or script to execute
+#   timer_user: under which users the timer_command is executed. Default: root
+#   timer_OnCalendar: "*-*-* *:*:*" for example: *-*-* *:*:00 -> every minute
+#                     Day Of the week  Year-Month-Date  Hour:Minute:Second
+#   timer_AccuracySec: Timer have a default accuracy of round about one minute. You can set the accuracy with this var.
+#   timer_persistent: Takes a boolean argument. If true, the time when the service unit was last triggered is stroed on disk. When the timer is activated, 
+#                     the service unit is triggered immediately if it would have been triggered at least once during the time when the timer was inactive. 
+#                     This is useful to catch up on missed runs of the service when the machine was off.
+#                     Note that this setting only has an effect on timers configured with OnCalendar=.Defaults to false.
+#   timer_OnActiveSec: relative time after the timer unit was last activated
+#   timer_OnBootSec: Relative time after the computer was booted
+#   timer_OnStartupSec: Relative time after systemd was started
+#   timer_OnUnitActiveSec: Relative time after the service unit was last activated
diff --git a/tasks/main.yml b/tasks/main.yml
index 336d9f7..02a1163 100644
--- a/tasks/main.yml
+++ b/tasks/main.yml
@@ -1,32 +1,32 @@
 ---
 - name: Upload files and enable timer
-  
+
   block:
     - name: Uploading service file
       template:
-          src: service.j2
-          dest: "{{ systemd_base_path | default('/etc/systemd/system') }}/{{ item.key }}.service"
-          owner: "{{ item.value.timer_user | default('root') }}"
-          group: "{{ item.value.timer_user | default('root') }}"
-          mode: 0644
+        src: service.j2
+        dest: "{{ systemd_base_path | default('/etc/systemd/system') }}/{{ item.key }}.service"
+        owner: "{{ item.value.timer_user | default('root') }}"
+        group: "{{ item.value.timer_user | default('root') }}"
+        mode: 0644
       with_dict: "{{ timers }}"
 
     - name: Uploading timer file
       template:
-          src: timer.j2
-          dest: "{{ systemd_base_path | default('/etc/systemd/system') }}/{{ item.key }}.timer"
-          owner: "{{ item.value.timer_user | default('root') }}"
-          group: "{{ item.value.timer_user | default('root') }}"
-          mode: 0644
+        src: timer.j2
+        dest: "{{ systemd_base_path | default('/etc/systemd/system') }}/{{ item.key }}.timer"
+        owner: "{{ item.value.timer_user | default('root') }}"
+        group: "{{ item.value.timer_user | default('root') }}"
+        mode: 0644
       with_dict: "{{ timers }}"
 
     - name: Enabling timers
       systemd:
-          name: "{{ item.key }}.timer"
-          state: restarted
-          enabled: true
-          masked: false
-          scope: "{{ systemd_scope | default('system') }}"
+        name: "{{ item.key }}.timer"
+        state: restarted
+        enabled: true
+        masked: false
+        scope: "{{ systemd_scope | default('system') }}"
       with_dict: "{{ timers }}"
-  
-  notify: Reload systemd
\ No newline at end of file
+
+  notify: Reload systemd
-- 
GitLab