Enable periodic crub.

This commit is contained in:
Tom Alexander 2022-10-14 01:52:42 -04:00
parent 244fe81111
commit dcba0af7c1
Signed by: talexander
GPG Key ID: D3A179C9A53C0EDE

View File

@ -47,14 +47,18 @@
- name: Update cap_mkdb
command: cap_mkdb /etc/login.conf
when: login_config.changed
# - name: Install periodic.conf.local
# copy:
# src: periodic.conf.local
# dest: /etc/periodic.conf.local
# owner: root
# group: wheel
# mode: 0644
- name: Enable periodic scrub
community.general.sysrc:
name: daily_scrub_zfs_enable
value: "YES"
path: /etc/periodic.conf.local
- name: Set scrub interval
community.general.sysrc:
name: daily_scrub_zfs_default_threshold
value: "7"
path: /etc/periodic.conf.local
# - name: Install loader.conf
# copy:
# src: "{{loader_conf}}"