diff options
Diffstat (limited to 'roles/storage/zfs/syncoid/tasks')
-rw-r--r-- | roles/storage/zfs/syncoid/tasks/main.yml | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/roles/storage/zfs/syncoid/tasks/main.yml b/roles/storage/zfs/syncoid/tasks/main.yml index 6b3e227e..939dc110 100644 --- a/roles/storage/zfs/syncoid/tasks/main.yml +++ b/roles/storage/zfs/syncoid/tasks/main.yml @@ -71,14 +71,22 @@ enabled: yes - name: enable autosuspend - when: zfs_syncoid_autosuspend + when: zfs_syncoid_autosuspend is defined block: + - name: install hdparm package + when: zfs_syncoid_autosuspend == 'disks' + apt: + name: hdparm + state: present + - name: create systemd override directory for sanoid timer + when: zfs_syncoid_autosuspend == 'system' file: path: /etc/systemd/system/sanoid.timer.d state: directory - name: disable persistence of sanoid timer + when: zfs_syncoid_autosuspend == 'system' copy: content: | [Timer] |