{{ inventory_hostname }}
{{ vm_install.mem * 1024 }}
{{ vm_install.mem * 1024 }}
{{ vm_install.numcpu }}
hvm
{% if run_installer %}
/home/rhadmin/installer/{{ vmdistro }}/{{ vm_install.arch | default('amd64') }}/linux
/home/rhadmin/installer/{{ vmdistro }}/{{ vm_install.arch | default('amd64') }}/initrd.gz
console=ttyS0,115200n8 auto=true interface=auto url=http://ansible.helsinki.at/preseed/vm-{{ inventory_hostname }}-{{ vmdistro }}.cfg netcfg/choose_interface=enp1s1 netcfg/disable_autoconfig=true netcfg/get_ipaddress={{ srv_network.internal.ip }} netcfg/get_netmask=255.255.255.0 netcfg/get_gateway=192.168.1.254 netcfg/get_nameservers=192.168.1.254 netcfg/confirm_static=true netcfg/get_hostname={{ inventory_hostname }} netcfg/get_domain=helsinki.at
{% 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 %}