File tree Expand file tree Collapse file tree 5 files changed +32
-3
lines changed Expand file tree Collapse file tree 5 files changed +32
-3
lines changed Original file line number Diff line number Diff line change 2
2
# List of pools to define and start.
3
3
# Each item should be a dict containing the following items:
4
4
# name: The name of the pool.
5
- # type: The type of the pool, currently only 'dir' is supported.
5
+ # type: The type of the pool, currently only 'dir', 'lvm2' or 'zfs' are supported.
6
6
# capacity: The capacity, in bytes, of the pool.
7
7
# path: The absolute path to the pool's backing directory.
8
8
# mode: The access mode of the pool.
Original file line number Diff line number Diff line change @@ -17,6 +17,9 @@ galaxy_info:
17
17
- name : Debian
18
18
versions :
19
19
- all
20
+ - name : ArchLinux
21
+ versions :
22
+ - all
20
23
galaxy_tags :
21
24
- cloud
22
25
- kvm
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
44
+ become : True
Original file line number Diff line number Diff line change 3
3
{% if 'capacity' in item %}
4
4
<capacity >{{ item.capacity }}</capacity >
5
5
{% endif %}
6
- {% if item .type == 'lvm2' %}
6
+ {% if item .type == 'lvm2' or item . type == 'zfs' %}
7
7
<source >
8
8
<name >{{ item.source }}</name >
9
+ {% if item .type == 'lvm2' %}
9
10
<format type =' lvm2' />
11
+ {% endif %}
10
12
</source >
11
13
{% endif %}
14
+ {% if item .type != 'zfs' %}
12
15
<target >
13
16
<path >{{ item.path | default('placeholder_value') }}</path >
14
17
</target >
18
+ {% endif %}
15
19
</pool >
Original file line number Diff line number Diff line change
1
+ ---
2
+ # List of package dependencies common to all Debian distributions
3
+ libvirt_host_libvirt_packages_default :
4
+ - libvirt
5
+ - qemu-headless
6
+ - libvirt-python
7
+ - python-lxml
8
+ - ebtables
9
+ - dnsmasq
10
+
11
+ # Packages that are only necessary if you require EFI support
12
+ libvirt_host_packages_efi :
13
+ - ovmf
14
+
15
+ # List of all packages to install
16
+ libvirt_host_libvirt_packages : >
17
+ {{ libvirt_host_libvirt_packages_default +
18
+ (libvirt_host_packages_efi if libvirt_host_enable_efi_support else []) | unique
19
+ }}
20
+
21
+ # These are passed to the lineinfile module to customize configuration files
22
+ libvirt_host_lineinfile_extra_rules : []
You can’t perform that action at this time.
0 commit comments