diff --git a/roles/beaker/virthost/tasks/main.yml b/roles/beaker/virthost/tasks/main.yml index de675b1d63..4d0fdb42c9 100644 --- a/roles/beaker/virthost/tasks/main.yml +++ b/roles/beaker/virthost/tasks/main.yml @@ -21,6 +21,5 @@ template: src: client-libvirt.xml.j2 dest: /root/{{ item }}.libvirt.xml - vmhostname: "{{ item['hostname'] }}" - vmmacaddress: "{{ item['macaddress'] }}" + vmdata: item with_items: clients diff --git a/roles/beaker/virthost/templates/client-libvirt.xml.j2 b/roles/beaker/virthost/templates/client-libvirt.xml.j2 index 51d7c4aee6..6965b66a59 100644 --- a/roles/beaker/virthost/templates/client-libvirt.xml.j2 +++ b/roles/beaker/virthost/templates/client-libvirt.xml.j2 @@ -1,5 +1,5 @@ - {{ vmhostname }} + {{ vmdata['hostname'] }} {{ mem_size_kb }} {{ num_cpus }} @@ -30,7 +30,7 @@ /usr/bin/qemu-kvm - +
@@ -55,7 +55,7 @@
- +