3
3
libvirt_host_libvirt_packages_common :
4
4
- qemu-kvm
5
5
6
- # Package that contains the libvirt daemon
7
- libvirt_host_libvirt_packages_libvirt_daemon : >-
8
- {%- if (ansible_distribution == "Ubuntu" and
9
- ansible_distribution_major_version is version_compare('16.04', '<')) or
10
- (ansible_distribution == "Debian" and
11
- ansible_distribution_major_version is version_compare('8', '<')) -%}
12
- libvirt-bin
13
- {%- else -%}
14
- libvirt-daemon-system
15
- {%- endif -%}
6
+ # List of all daemon packages to install.
7
+ libvirt_host_libvirt_packages_libvirt_daemon :
8
+ # The apparmor package contains the apparmor_parser tool.
9
+ - " {% if ansible_apparmor.status| default == 'enabled' %}apparmor{% endif %}"
10
+ - >-
11
+ {%- if (ansible_distribution == "Ubuntu" and
12
+ ansible_distribution_major_version is version_compare('16.04', '<')) or
13
+ (ansible_distribution == "Debian" and
14
+ ansible_distribution_major_version is version_compare('8', '<')) -%}
15
+ libvirt-bin
16
+ {%- else -%}
17
+ libvirt-daemon-system
18
+ {%- endif -%}
16
19
17
20
# List of all client packages to install.
18
21
libvirt_host_libvirt_packages_client :
@@ -27,7 +30,7 @@ libvirt_host_packages_efi:
27
30
# List of all packages to install
28
31
libvirt_host_libvirt_packages : >
29
32
{{ libvirt_host_libvirt_packages_common +
30
- [ libvirt_host_libvirt_packages_libvirt_daemon] +
33
+ libvirt_host_libvirt_packages_libvirt_daemon +
31
34
libvirt_host_libvirt_packages_client +
32
35
(libvirt_host_packages_efi if libvirt_host_enable_efi_support else []) | unique
33
36
}}
0 commit comments