summaryrefslogtreecommitdiff
path: root/roles/storage/zfs/base/tasks/main.yml
diff options
context:
space:
mode:
authorChristian Pointner <equinox@spreadspace.org>2024-01-20 22:42:30 +0100
committerChristian Pointner <equinox@spreadspace.org>2024-01-20 22:42:30 +0100
commitba2ab1cb42db29c8287c65a3f1e0b646eeba0464 (patch)
tree73a496d6b03085de2aa8dfe22ca201ff0354ba07 /roles/storage/zfs/base/tasks/main.yml
parentapps/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.yml9
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