From 0f4dce5bd1c27a7df56ce0f94578dfe8cea1aa4d Mon Sep 17 00:00:00 2001 From: Josh Lay Date: Mon, 20 Oct 2025 02:33:39 -0500 Subject: [PATCH] README: restore example, include pool (mirror) --- README.md | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/README.md b/README.md index f3d8589..db95109 100644 --- a/README.md +++ b/README.md @@ -22,6 +22,31 @@ For pools/volumes, see: 1. `community.general`: `rhsm_repository`, `dnf_config_manager`, and `modprobe` +## Example Playbook + +```yaml +--- +- name: ZFS + Pool + hosts: exporter # group in inventory + roles: + - name: zfs_dkms + vars: + zfs_dkms_arc_pct_max: 33 + tasks: + - name: Pool ('rust', mirror) + community.general.zpool: + name: rust + pool_properties: + ashift: 12 + filesystem_properties: + compression: lz4 + vdevs: + - type: mirror + disks: + - /dev/disk/by-id/ata-WDC_WD120EFBX-ABCDEFG_12345678 + - /dev/disk/by-id/ata-WDC_WD120EFBX-HIJKLMN_87654321 +``` + ## License [MIT](./LICENSE)