Move ARC size to defaults so it can be easily changed
This commit is contained in:
parent
5b495688cd
commit
8fe8788458
2 changed files with 2 additions and 4 deletions
2
ansible/roles/zfs/defaults/main.yml
Normal file
2
ansible/roles/zfs/defaults/main.yml
Normal file
|
@ -0,0 +1,2 @@
|
||||||
|
# Cap ARC size to 50% RAM
|
||||||
|
zfs_arc_size: "{{ (ansible_memtotal_mb * 1024 * 1024) * 0.5 }}"
|
|
@ -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
|
- name: Enable zfs module
|
||||||
modprobe:
|
modprobe:
|
||||||
name: zfs
|
name: zfs
|
||||||
|
|
Loading…
Reference in a new issue