infrastructure/ansible/roles/zfs/tasks/main.yml

13 lines
267 B
YAML
Raw Normal View History

2020-07-26 18:03:09 +01:00
- name: Calculate ZFS ARC size
set_fact:
zfs_arc_size: "{{ (ansible_memtotal_mb * 1024 * 1024) * 0.15 }}"
- name: Enable zfs module
modprobe:
name: zfs
state: present
params: 'zfs_arc_max={{ zfs_arc_size }}'
- name: Sanoid
include: sanoid.yml