Skip to content

Commit 867ef64

Browse files
committed
First cut at support for logical storage pools
1 parent 0de2e15 commit 867ef64

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

tasks/pools.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
group: "{{ item.group }}"
77
mode: "{{ item.mode|int(base=8) }}"
88
state: directory
9+
when: item.type == "dir"
910
with_items: "{{ libvirt_host_pools }}"
1011
become: True
1112

templates/pool.xml.j2

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<pool type='{{ item.type }}'>
22
<name>{{ item.name }}</name>
3-
<capacity unit='bytes'>{{ item.capacity }}</capacity>
3+
<capacity>{{ item.capacity }}</capacity>
44
<target>
5-
<path>{{ item.path }}</path>
5+
<path>{{ item.path | default('placeholder_value') }}</path>
66
</target>
77
</pool>

0 commit comments

Comments
 (0)