diff options
author | Christian Pointner <equinox@spreadspace.org> | 2024-01-20 22:42:30 +0100 |
---|---|---|
committer | Christian Pointner <equinox@spreadspace.org> | 2024-01-20 22:42:30 +0100 |
commit | ba2ab1cb42db29c8287c65a3f1e0b646eeba0464 (patch) | |
tree | 73a496d6b03085de2aa8dfe22ca201ff0354ba07 /roles/storage/zfs/base/tasks/main.yml | |
parent | apps/storage: test with zfs volumes (diff) |
add storage_device roles
Diffstat (limited to 'roles/storage/zfs/base/tasks/main.yml')
-rw-r--r-- | roles/storage/zfs/base/tasks/main.yml | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/roles/storage/zfs/base/tasks/main.yml b/roles/storage/zfs/base/tasks/main.yml index b731bb1f..d0854880 100644 --- a/roles/storage/zfs/base/tasks/main.yml +++ b/roles/storage/zfs/base/tasks/main.yml @@ -68,3 +68,12 @@ zfs_volume: "{{ item }}" include_role: name: storage/zfs/volume + +- name: create zfs devices + loop: "{{ zfs_devices }}" + loop_control: + label: "{{ item.pool }}/{{ item.name }}" + vars: + zfs_device: "{{ item }}" + include_role: + name: storage/zfs/device |