File tree Expand file tree Collapse file tree 2 files changed +1
-27
lines changed Expand file tree Collapse file tree 2 files changed +1
-27
lines changed Original file line number Diff line number Diff line change 41
41
autostart : yes
42
42
uri : " {{ libvirt_host_uri | default(omit, true) }}"
43
43
with_items : " {{ libvirt_host_pools }}"
44
- become : True
45
-
46
- - name : " Create custom fact directory"
47
- file :
48
- path : " /etc/ansible/facts.d"
49
- state : " directory"
50
- when : item.type == "zfs"
51
- with_items : " {{ libvirt_host_pools }}"
52
- become : True
53
-
54
- - name : Create Ansible fact for zfs pool to path mapping
55
- ini_file :
56
- path : /etc/ansible/facts.d/libvirt.fact
57
- section : zfs_storage_pools
58
- option : " {{ item.name }}"
59
- value : " {{ item.source }}"
60
- when : item.type == "zfs"
61
- with_items : " {{ libvirt_host_pools }}"
62
- become : True
63
-
64
- - name : reload facts
65
- setup : ~
44
+ become : True
Original file line number Diff line number Diff line change 11
11
{% endif %}
12
12
</source >
13
13
{% endif %}
14
- {% if item .type != 'zfs' %}
15
- <target >
16
- <path >{{ item.path | default('placeholder_value') }}</path >
17
- </target >
18
- {% endif %}
19
14
</pool >
You can’t perform that action at this time.
0 commit comments