Allow configuring of pools to scrub

This commit is contained in:
Jake Howard 2021-01-09 20:52:51 +00:00
parent 721bdf60b3
commit 57d9c9d288
Signed by: jake
GPG key ID: 57AFB45680EDD477
2 changed files with 6 additions and 2 deletions

View file

@ -1 +1,4 @@
docker_zfs_override: true docker_zfs_override: true
zpools_to_scrub:
- tank

View file

@ -6,10 +6,11 @@
- name: ZFS Scrub - name: ZFS Scrub
cron: cron:
name: zfs scrub name: zfs scrub {{ item }}
special_time: weekly special_time: weekly
job: zpool scrub tank job: zpool scrub {{ item }}
become: true become: true
loop: "{{ zpools_to_scrub }}"
- name: Sanoid - name: Sanoid
include: sanoid.yml include: sanoid.yml