From 23e8de07f349195568d0f35e53d5fda0d5ce2bd8 Mon Sep 17 00:00:00 2001 From: Josh Lay Date: Thu, 13 Jun 2019 20:56:43 -0500 Subject: [PATCH] improve zfs support on ubuntu --- roles/zfs/tasks/main.yml | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/roles/zfs/tasks/main.yml b/roles/zfs/tasks/main.yml index 2ffb942..99aa7de 100644 --- a/roles/zfs/tasks/main.yml +++ b/roles/zfs/tasks/main.yml @@ -23,6 +23,15 @@ state: present when: ansible_distribution in ["Fedora"] and not is_atomic +- name: install zfs utils (Ubuntu) + package: + name: "{{ item }}" + state: present + with_items: + - zfsutils-linux + - zfs-initramfs + when: ansible_distribution in ["Ubuntu"] + - name: install zfs and dkms package: name: "{{ item }}" @@ -33,7 +42,7 @@ - dkms - zfs register: zfs_installed - when: not is_atomic + when: ansible_distribution in ["CentOS" , "Red Hat Enterprise Linux", "Fedora" ] and not is_atomic - name: load zfs module modprobe: