2020-07-26 18:03:09 +01:00
|
|
|
- name: Calculate ZFS ARC size
|
|
|
|
set_fact:
|
2020-08-23 14:15:09 +01:00
|
|
|
zfs_arc_size: "{{ (ansible_memtotal_mb * 1024 * 1024) * 0.5 }}"
|
2020-07-26 18:03:09 +01:00
|
|
|
|
|
|
|
- name: Enable zfs module
|
|
|
|
modprobe:
|
|
|
|
name: zfs
|
|
|
|
state: present
|
2020-07-26 18:22:43 +01:00
|
|
|
params: zfs_arc_max={{ zfs_arc_size }}
|
2020-07-26 18:03:09 +01:00
|
|
|
|
2020-07-26 22:17:28 +01:00
|
|
|
- name: ZFS Scrub
|
|
|
|
cron:
|
|
|
|
name: zfs scrub
|
|
|
|
special_time: weekly
|
|
|
|
job: zpool scrub tank
|
2020-08-17 22:29:02 +01:00
|
|
|
become: true
|
2020-07-26 22:17:28 +01:00
|
|
|
|
2020-07-26 18:03:09 +01:00
|
|
|
- name: Sanoid
|
|
|
|
include: sanoid.yml
|