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