From a3cd18f090441a5818537e601d41fad637f14120 Mon Sep 17 00:00:00 2001 From: Josh Lay Date: Wed, 3 Jun 2020 21:13:26 -0500 Subject: [PATCH] zfs: support more fedora versions --- roles/zfs/tasks/main.yml | 2 +- roles/zfs/tasks/zfs-release.yml | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) 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)