blob: 00de48a95760d3bc29815da99ffe378fa0960a78 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
|
---
- name: create zfs base datasets
loop: "{{ lookup('dict', vm_host.zfs, wantlist=True) }}"
loop_control:
label: "{{ item.key }} -> {{ item.value.pool }}/{{ item.value.name }}{% if 'quota' in item.value %}={{ item.value.quota }}{% endif %}"
zfs:
name: "{{ item.value.pool }}/{{ item.value.name }}"
state: present
extra_zfs_properties:
quota: "{{ item.value.quota | default(omit) }}"
canmount: no
mountpoint: none
|