4 vm: "{{vm_defaults|combine(object)}}"
7 ansible.builtin.command:
9 'qemu-img', 'create', '-f', 'qcow2',
10 "{{vm.disk}}", "{{vm.disk_capacity}}",
12 creates: "{{vm.disk}}"
14 # Note: is vm.uuid is not set and the template is changed, those changes will not be applied
15 # Note: many changes will require the VM to be destroyed then started again
16 community.libvirt.virt:
18 xml: "{{lookup('template', vm.template|default('vm_template.xml.j2'))}}"