--- - name: Download Ubuntu 22.04 iso to user core's tmp dir ansible.builtin.get_url: url: https://releases.ubuntu.com/22.04/ubuntu-22.04.1-live-server-amd64.iso dest: /home/core/tmp/ubuntu-22.04.1-live-server-amd64.iso mode: '0640' - name: Download Ubuntu 20.04 iso to user core's tmp dir ansible.builtin.get_url: url: https://releases.ubuntu.com/focal/ubuntu-20.04.5-live-server-amd64.iso dest: /home/core/tmp/ubuntu-20.04.1-live-server-amd64.iso mode: '0640' - name: DEBUG variables TEST ONLY debug: msg: "{{ install_vm.ram }}" - name: Install VM with default host-specific host_vars settings shell: #cmd: echo {{ install_vm.ram }} cmd: virt-install --name {{ vm }} --ram {{ install_vm.ram }} --disk path=/var/lib/libvirt/images/{{ vm }}.img,size={{ install_vm.size }} --vcpus {{ install_vm.vcpus }} --os-variant {{ install_vm.osvariant }} --network bridge=br0 --graphics none --console pty,target_type=serial --location {{ install_vm.image }},kernel=casper/vmlinuz,initrd=casper/initrd --extra-args 'console=ttyS0,115200n8' - name: Upload vm XML-Description to core's tmp dir ansible.builtin.template: src: default.xml dest: /home/core/tmp/ owner: core group: users mode: '0644' ...