zfs: support more fedora versions
This commit is contained in:
parent
4a0eeae90f
commit
a3cd18f090
2 changed files with 3 additions and 3 deletions
|
@ -25,7 +25,7 @@
|
|||
register: zfsload
|
||||
|
||||
# does not adjust to 20% of each host, depends on consistency between hosts - inconsistency leads to disproportionate allocations
|
||||
- name: set zfs_arc_max to 20% installed memory ({{ zfs_arc_size_bytes }} bytes)
|
||||
- name: set zfs_arc_max to 20% of system memory
|
||||
lineinfile:
|
||||
path: "/etc/modprobe.d/zfs.conf"
|
||||
regexp: '^options zfs zfs_arc_max='
|
||||
|
|
|
@ -12,8 +12,8 @@
|
|||
state: present
|
||||
when: (ansible_distribution_major_version == "8")
|
||||
|
||||
- name: install zfs-release package (Fedora)
|
||||
- name: install/upgrade zfs-release package (Fedora)
|
||||
dnf:
|
||||
name: "http://download.zfsonlinux.org/fedora/zfs-release.fc31.noarch.rpm"
|
||||
name: "http://download.zfsonlinux.org/fedora/zfs-release.fc{{ansible_distribution_major_version}}.noarch.rpm"
|
||||
state: present
|
||||
when: (ansible_distribution in ["Fedora"] and not is_atomic)
|
||||
|
|
Loading…
Reference in a new issue