2
[Help] Which modules for BTRFS or ZFS setup with Ansible?
(lemmy.dbzer0.com)
I couldn't find any ansible modules for managing ZFS so I ended up doing it using the command module which is rather clunky and prone to exceptions I hadn't thought of.
- name: Import zfs pool
ansible.builtin.command: "zpool import -d /dev/disk/by-id {{ item.name }}"
become: true
register: import_result
changed_when: import_result.rc == 0
I have done the same just with Btrfs now.
# TODO