From 25d3e426c9116ef959e5cab133a70f5edec9b98d Mon Sep 17 00:00:00 2001 From: spmfox Date: Sat, 18 Nov 2023 22:08:45 -0500 Subject: if kickstart is not being used, change the install to 'cdrom' from 'location' to support Windows, adding cpu_type for windows support as well --- roles/libvirt/vars/main.yml | 1 + 1 file changed, 1 insertion(+) (limited to 'roles/libvirt/vars') diff --git a/roles/libvirt/vars/main.yml b/roles/libvirt/vars/main.yml index 33ecc48..04d4e4a 100644 --- a/roles/libvirt/vars/main.yml +++ b/roles/libvirt/vars/main.yml @@ -1,6 +1,7 @@ libvirt_vm_name: "{{ inventory_hostname }}" libvirt_vm_memory: "{{ memory_mb if memory_mb is defined else '1024' }}" libvirt_vm_vcpus: "{{ cpus if cpus is defined else '1' }}" +libvirt_vm_cpu: "{{ cpu_type if cpu_type is defined else 'host-passthrough' }}" libvirt_vm_disk_size: "{{ disk_gb if disk_gb is defined else '20' }}" libvirt_vm_disk_format: "{{ disk_format if disk_format is defined else 'qcow2' }}" libvirt_vm_os: "{{ os if os is defined else 'rhel8-unknown' }}" -- cgit