From fe86e4ea53f16db446db7599c5dce77a34810b95 Mon Sep 17 00:00:00 2001 From: Tyler Hale Date: Wed, 26 Feb 2025 06:23:01 -0700 Subject: [PATCH] Enforcing kmod removal --- roles/zfs/tasks/main.yml | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/roles/zfs/tasks/main.yml b/roles/zfs/tasks/main.yml index d97e251..ac6e511 100644 --- a/roles/zfs/tasks/main.yml +++ b/roles/zfs/tasks/main.yml @@ -18,6 +18,19 @@ state: latest disable_gpg_check: True +- name: Disable kmod zfs + community.general.dnf_config_manager: + name: zfs-kmod + state: disabled + register: zfs_kmod_results + +- name: Uninstall kmod ZFS + package: + name: zfs + state: absent + register: zfs_install + when: zfs_kmod_results.changed + - name: Enable ZFS testing package community.general.dnf_config_manager: name: zfs-testing @@ -67,4 +80,4 @@ state: started enabled: yes when: zfs_cockpit - \ No newline at end of file +