- name: Install ZFS on Alpine Linux
  hosts: all

  tasks:
    - name: Install ZFS packages
      community.general.apk:
        name: "{{ item }}"
        state: present
      with_items:
        - zfs

    - name: Load ZFS kernel module
      community.general.modprobe:
        name: zfs
        state: present
        persistent: present