From 2f00a6e31e6f92c210907e58dfb06e16e3e4772e Mon Sep 17 00:00:00 2001 From: Michael Grote Date: Fri, 1 Apr 2022 18:47:40 +0200 Subject: [PATCH] wip --- roles/mgrote.zfs_sanoid/tasks/main.yml | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/roles/mgrote.zfs_sanoid/tasks/main.yml b/roles/mgrote.zfs_sanoid/tasks/main.yml index 750643c2..6cc55e4e 100644 --- a/roles/mgrote.zfs_sanoid/tasks/main.yml +++ b/roles/mgrote.zfs_sanoid/tasks/main.yml @@ -30,29 +30,24 @@ - name: add sanoid_mail.service to sanoid.service become: true community.general.ini_file: - path: "/etc/systemd/system/{{ item }}" + path: "/etc/systemd/system/sanoid.service" section: Unit state: present no_extra_spaces: no option: OnFailure value: sanoid_mail.service - loop: - - sanoid.service - - sanoid-prune.service notify: - systemctl daemon-reload - - name: add sanoid_mail.service to sanoid.service + - name: set timer become: true community.general.ini_file: - path: "/etc/systemd/system/{{ item }}" + path: "/etc/systemd/system/sanoid.timer" section: Timer state: present no_extra_spaces: no option: OnCalendar value: "{{ sanoid_timer }}" - loop: - - sanoid.timer notify: - systemctl daemon-reload