--- # tasks file for ericomeehan.cluster-gateway - name: Download latest Debian netinstall ISO get_url: url: {{ debian_image_url }} dest: /data/debian-netinst.iso - name: Create virtual machine disk image command: qemu-img create -f qcow2 /data/store-0/cluster-gateway.qcow2 4G - name: Install Debian on the VM command: virt-install --name cluster-gateway --ram 1024 --vcpus 1 --os-type linux --os-variant debian12 --disk /data/store-0/cluster-gateway.qcow2 --network bridge:virbr0 --graphics none --console pty,target_type=serial --extra-args 'console=ttyS0,115200n8 serial' --cdrom /data/debian-netinst.iso - name: Start the cluster gateway command: virsh autostart cluster-gateway