diff --git a/roles/zfs/tasks/main.yml b/roles/zfs/tasks/main.yml index f76c1f9..e975e34 100644 --- a/roles/zfs/tasks/main.yml +++ b/roles/zfs/tasks/main.yml @@ -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=' diff --git a/roles/zfs/tasks/zfs-release.yml b/roles/zfs/tasks/zfs-release.yml index 02cc47e..7a9273f 100644 --- a/roles/zfs/tasks/zfs-release.yml +++ b/roles/zfs/tasks/zfs-release.yml @@ -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)