File tree Expand file tree Collapse file tree 2 files changed +9
-1
lines changed Expand file tree Collapse file tree 2 files changed +9
-1
lines changed Original file line number Diff line number Diff line change 14
14
- include_tasks : hypervisor_setup.yml
15
15
16
16
- hosts : libvirt
17
+ vars :
18
+ nodes : >-
19
+ {{ hostvars.localhost.tenks_state[inventory_hostname].nodes
20
+ | default([]) }}
21
+ libvirt_enable_efi_default : " {{ 'efi' in (nodes | map(attribute='boot_firmware') | map('lower')) }}"
17
22
tasks :
18
23
- block :
19
24
- name : Configure host for Libvirt
29
34
owner : " {{ libvirt_pool_owner }}"
30
35
group : " {{ libvirt_pool_group }}"
31
36
libvirt_host_require_vt : " {{ libvirt_require_vt }}"
37
+ libvirt_host_enable_efi_support : " {{ libvirt_enable_efi | default(libvirt_enable_efi_default) }}"
32
38
33
39
- name : Set up Virtual BMC daemon
34
40
include_role :
Original file line number Diff line number Diff line change @@ -14,7 +14,9 @@ cmd: deploy
14
14
# memory_mb: 1024
15
15
# # The number of virtual CPUs.
16
16
# vcpus: 2
17
- # # A list of volumes, each with a capacity.
17
+ # # The boot firmware to use. Can be one of: bios, or efi.
18
+ # boot_firmware: bios
19
+ # # A list of volumes, each with a capacity.#
18
20
# volumes:
19
21
# - capacity: 2GB
20
22
# # A list of physical network names to connect to. These physical network
You can’t perform that action at this time.
0 commit comments