improve zfs support on ubuntu
This commit is contained in:
parent
9b60054fc4
commit
23e8de07f3
1 changed files with 10 additions and 1 deletions
|
@ -23,6 +23,15 @@
|
||||||
state: present
|
state: present
|
||||||
when: ansible_distribution in ["Fedora"] and not is_atomic
|
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
|
- name: install zfs and dkms
|
||||||
package:
|
package:
|
||||||
name: "{{ item }}"
|
name: "{{ item }}"
|
||||||
|
@ -33,7 +42,7 @@
|
||||||
- dkms
|
- dkms
|
||||||
- zfs
|
- zfs
|
||||||
register: zfs_installed
|
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
|
- name: load zfs module
|
||||||
modprobe:
|
modprobe:
|
||||||
|
|
Loading…
Reference in a new issue