Move ARC size to defaults so it can be easily changed

This commit is contained in:
Jake Howard 2021-01-09 18:24:52 +00:00
parent 5b495688cd
commit 8fe8788458
Signed by: jake
GPG Key ID: 57AFB45680EDD477
2 changed files with 2 additions and 4 deletions

View File

@ -0,0 +1,2 @@
# Cap ARC size to 50% RAM
zfs_arc_size: "{{ (ansible_memtotal_mb * 1024 * 1024) * 0.5 }}"

View File

@ -1,7 +1,3 @@
- name: Calculate ZFS ARC size
set_fact:
zfs_arc_size: "{{ (ansible_memtotal_mb * 1024 * 1024) * 0.5 }}"
- name: Enable zfs module
modprobe:
name: zfs