README/example: stub for disks, comment
This commit is contained in:
parent
5f8fbe50cb
commit
d29c86909a
1 changed files with 8 additions and 5 deletions
13
README.md
13
README.md
|
@ -23,13 +23,18 @@ or [Ubuntu](https://openzfs.github.io/openzfs-docs/Getting%20Started/Ubuntu/inde
|
||||||
```yaml
|
```yaml
|
||||||
---
|
---
|
||||||
- name: ZFS + Pool
|
- name: ZFS + Pool
|
||||||
hosts: exporter # group in inventory
|
hosts: all
|
||||||
|
vars:
|
||||||
|
zfs_mirror_disks: # example only, host-specific (inventory/'host_vars' instead)
|
||||||
|
- /dev/disk/by-id/ata-WDC_WD120EFBX-ABCDEFG_12345678
|
||||||
|
- /dev/disk/by-id/ata-WDC_WD120EFBX-HIJKLMN_87654321
|
||||||
roles:
|
roles:
|
||||||
- name: zfs_dkms
|
- name: zfs_dkms
|
||||||
vars:
|
vars:
|
||||||
zfs_dkms_arc_pct_max: 33
|
zfs_dkms_arc_pct_max: 33
|
||||||
tasks:
|
tasks:
|
||||||
- name: Pool ('rust', mirror)
|
- name: Pool (mirror, 'rust')
|
||||||
|
when: zfs_mirror_disks is defined
|
||||||
community.general.zpool: # see also: community.general.zfs
|
community.general.zpool: # see also: community.general.zfs
|
||||||
name: rust
|
name: rust
|
||||||
pool_properties:
|
pool_properties:
|
||||||
|
@ -38,9 +43,7 @@ or [Ubuntu](https://openzfs.github.io/openzfs-docs/Getting%20Started/Ubuntu/inde
|
||||||
compression: lz4
|
compression: lz4
|
||||||
vdevs:
|
vdevs:
|
||||||
- type: mirror
|
- type: mirror
|
||||||
disks:
|
disks: "{{ zfs_mirror_disks }}" # reminder: 'host_vars'/inventory, host-specific
|
||||||
- /dev/disk/by-id/ata-WDC_WD120EFBX-ABCDEFG_12345678
|
|
||||||
- /dev/disk/by-id/ata-WDC_WD120EFBX-HIJKLMN_87654321
|
|
||||||
```
|
```
|
||||||
|
|
||||||
## License
|
## License
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue