File tree Expand file tree Collapse file tree 3 files changed +9
-2
lines changed Expand file tree Collapse file tree 3 files changed +9
-2
lines changed Original file line number Diff line number Diff line change @@ -20,6 +20,10 @@ should be a dict containing the following items:
20
20
deprecated and will be removed in a future release.
21
21
- ` capacity ` The capacity, in bytes, of the pool. (optional)
22
22
- ` path ` The absolute path to the pool's backing directory.
23
+ - ` path ` : The absolute path to the pool's backing directory, as configured in
24
+ the pool definition.
25
+ - ` host_path ` : The absolute path to the pool's backing directory, that will be
26
+ created on the host. Optional, defaults to the same as ` pool.path ` .
23
27
- ` mode ` The access mode of the pool. N.B.: This should be specified as an
24
28
integer ** without** a leading zero; for example: ` mode: 755 ` . (only ` dir ` )
25
29
- ` owner ` The owner of the pool. (only ` dir ` )
Original file line number Diff line number Diff line change 6
6
# supported. 'lvm2' is supported as an alias for 'logical', but this
7
7
# alias is deprecated and will be removed in a future release.
8
8
# capacity: The capacity, in bytes, of the pool.
9
- # path: The absolute path to the pool's backing directory.
9
+ # path: The absolute path to the pool's backing directory, as configured in the
10
+ # pool definition.
11
+ # host_path: The absolute path to the pool's backing directory, that will be
12
+ # created on the host. Optional, defaults to the same as 'pool.path'.
10
13
# mode: The access mode of the pool.
11
14
# owner: The owner of the pool.
12
15
# group: The group of the pool.
Original file line number Diff line number Diff line change 1
1
---
2
2
- name : Ensure libvirt dir storage pool directories exist
3
3
file :
4
- path : " {{ item.path }}"
4
+ path : " {{ item.host_path | default(item. path) }}"
5
5
owner : " {{ item.owner }}"
6
6
group : " {{ item.group }}"
7
7
mode : " {{ item.mode|int(base=8) }}"
You can’t perform that action at this time.
0 commit comments