{{ inventory_hostname }}
{{ vm_install.mem * 1024 }}
{{ vm_install.mem * 1024 }}
{{ vm_install.numcpu }}
hvm
{% if run_installer %}
{{ hostvars[vm_install.host].vm_host.installer.path }}/{{ vmdistro }}-{{ vmdistcodename }}/{{ vm_install.arch | default('amd64') }}/linux
{{ hostvars[vm_install.host].vm_host.installer.path }}/{{ vmdistro }}-{{ vmdistcodename }}/{{ vm_install.arch | default('amd64') }}/initrd.gz
console=ttyS0,115200n8 auto=true interface=auto url=tftp://{{ hostvars[vm_install.host]['ansible_' + hostvars[vm_install.host].vm_host.installer.net_if].ipv4.address }}/vm-{{ inventory_hostname }}-{{ vmdistro }}-{{ vmdistcodename }}.cfg netcfg/choose_interface=enp1s1 netcfg/disable_autoconfig=true netcfg/get_ipaddress={{ vm_network.primary.ip }} netcfg/get_netmask={{ vm_network.primary.mask }} netcfg/get_gateway={{ vm_network.primary.gateway }} netcfg/get_nameservers="{{ vm_network.primary.nameservers | join(' ') }}" netcfg/confirm_static=true netcfg/get_hostname={{ inventory_hostname }} netcfg/get_domain={{ vm_network.primary.domain }}
{% endif %}
destroy
{% if run_installer %}
destroy
destroy
{% else %}
restart
restart
{% endif %}
/usr/bin/kvm
{% if 'virtio' in vm_install.disks %}
{% for device, lv in vm_install.disks.virtio.items() %}
{% endfor %}
{% endif %}
{% if 'scsi' in vm_install.disks %}
{% for device, lv in vm_install.disks.scsi.items() %}
{% endfor %}
{% endif %}
{% if vm_install.interfaces %}
{% for if in vm_install.interfaces %}
{% endfor %}
{% endif %}