2021-02-07 10:53:08 +01:00
|
|
|
## mgrote.zfs_manage_datasets
|
|
|
|
|
2021-12-16 19:49:33 +01:00
|
|
|
### Description
|
|
|
|
Creates Datasets, can set options.
|
|
|
|
This role does not create the pools.
|
|
|
|
Attributes get set `local` per dataset.
|
|
|
|
|
2021-02-07 10:53:08 +01:00
|
|
|
|
2021-12-16 19:49:33 +01:00
|
|
|
### tested on
|
2021-02-07 10:53:08 +01:00
|
|
|
- [x] ProxMox 6.1
|
2021-12-16 19:49:33 +01:00
|
|
|
- [x] ProxMox 7*
|
2021-02-07 10:53:08 +01:00
|
|
|
|
|
|
|
### Variablen + Defaults
|
2021-12-16 19:49:33 +01:00
|
|
|
- see [default-filter](./tasks/main.yml)
|
|
|
|
- all Variables from `man 8 zfs` are optional but not the name(dataset)
|
|
|
|
|
|
|
|
#### Example
|
|
|
|
```yaml
|
|
|
|
zfs_datasets:
|
|
|
|
- dataset: rpool/vm
|
|
|
|
state: present
|
|
|
|
compression: zstd
|
|
|
|
- dataset: tank/vm/dir/fileserver2_test
|
|
|
|
state: present
|
|
|
|
atime: on
|
|
|
|
snapdir: hidden
|
2021-02-07 10:53:08 +01:00
|
|
|
```
|