infrastructure/ansible/roles/zfs/tasks/main.yml
Jake Howard 922b688615
Bump ZFS usage to 50% RAM
It's a lot, but should be dealable on most machines
2020-08-23 14:15:09 +01:00

19 lines
377 B
YAML

- name: Calculate ZFS ARC size
set_fact:
zfs_arc_size: "{{ (ansible_memtotal_mb * 1024 * 1024) * 0.5 }}"
- name: Enable zfs module
modprobe:
name: zfs
state: present
params: zfs_arc_max={{ zfs_arc_size }}
- name: ZFS Scrub
cron:
name: zfs scrub
special_time: weekly
job: zpool scrub tank
become: true
- name: Sanoid
include: sanoid.yml