@@ -17,9 +17,15 @@ libvirt_host_libvirt_packages_client:
17
17
- " {{ 'python3-lxml' if libvirt_host_python3 | bool else 'python-lxml' }}"
18
18
19
19
# Packages that are only necessary if you require EFI support
20
- libvirt_host_packages_efi :
21
- - edk2.git-ovmf-x64 # Official OVMF package doesn't boot (CentOS 7.5)
22
- - qemu-kvm-ev # Need smm support for secure boot
20
+ libvirt_host_packages_efi_by_version :
21
+ 7 :
22
+ - edk2.git-ovmf-x64 # Official OVMF package doesn't boot (CentOS 7.5)
23
+ - qemu-kvm-ev # Need smm support for secure boot
24
+ 8 :
25
+ - edk2-ovmf
26
+
27
+ libvirt_host_packages_efi : >-
28
+ {{ libvirt_host_packages_efi_by_version[ansible_facts.distribution_major_version | int] }}
23
29
24
30
# List of all packages to install
25
31
libvirt_host_libvirt_packages : >
@@ -33,19 +39,22 @@ libvirt_host_packages_rbd_volume_pool:
33
39
- libvirt-daemon-driver-storage-rbd
34
40
- qemu-kvm-block-rbd
35
41
36
- libvirt_host_custom_yum_repos_efi :
37
- # Add custom repository as OVMF package seems to be broken
38
- - name : qemu-firmware-jenkins
39
- description : upstream OVMF firmware images
40
- baseurl : https://www.kraxel.org/repos/jenkins/
41
- gpgcheck : no
42
- # Need an updated version of qemu with smm support
43
- - name : centos-qemu-ev
44
- description : CentOS-$releasever - QEMU EV
45
- baseurl : http://mirror.centos.org/$contentdir/$releasever/virt/$basearch/kvm-common/
46
- gpgcheck : yes
47
-
48
- libvirt_host_custom_yum_repos : " {{ libvirt_host_custom_yum_repos_efi if libvirt_host_enable_efi_support else [] | unique }}"
42
+ libvirt_host_custom_yum_repos_efi_by_version :
43
+ 7 :
44
+ # Add custom repository as OVMF package seems to be broken
45
+ - name : qemu-firmware-jenkins
46
+ description : upstream OVMF firmware images
47
+ baseurl : https://www.kraxel.org/repos/jenkins/
48
+ gpgcheck : no
49
+ # Need an updated version of qemu with smm support
50
+ - name : centos-qemu-ev
51
+ description : CentOS-$releasever - QEMU EV
52
+ baseurl : http://mirror.centos.org/$contentdir/$releasever/virt/$basearch/kvm-common/
53
+ gpgcheck : yes
54
+ 8 : []
55
+
56
+ libvirt_host_custom_yum_repos : >-
57
+ {{ libvirt_host_custom_yum_repos_efi_by_version[ansible_facts.distribution_major_version | int] }}
49
58
50
59
# These are passed to the lineinfile module to customize configuration files
51
60
libvirt_host_lineinfile_extra_rules :
0 commit comments