|
|
@ -23,8 +23,17 @@ |
|
|
|
notify: restart sanoid |
|
|
|
notify: restart sanoid |
|
|
|
tags: zfs |
|
|
|
tags: zfs |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
- name: Remove sanoid-prune dependency |
|
|
|
|
|
|
|
file: path=/etc/systemd/system/sanoid.service.wants/sanoid-prune.service state=absent |
|
|
|
|
|
|
|
register: zfs_sanoid_prune |
|
|
|
|
|
|
|
tags: zfs |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
- name: Disable cronjob |
|
|
|
|
|
|
|
copy: content='# Cron job disabled, service is managed by a systemd timer' dest=/etc/cron.d/sanoid |
|
|
|
|
|
|
|
tags: zfs |
|
|
|
|
|
|
|
|
|
|
|
- name: Reload systemd |
|
|
|
- name: Reload systemd |
|
|
|
systemd: daemon_reload=True |
|
|
|
systemd: daemon_reload=True |
|
|
|
when: zfs_sanoid_units.results | selectattr('changed','equalto',True) | list | length > 0 |
|
|
|
when: zfs_sanoid_units.results | selectattr('changed','equalto',True) | list | length > 0 or zfs_sanoid_prune.changed |
|
|
|
tags: zfs |
|
|
|
tags: zfs |
|
|
|
|
|
|
|
|
|
|
|