Creating a network with libvirt

Hello,

As part of a playbook I’m writing for creating a KVM virtualization server, I’d also like to create a new virtual network for VMs to use. The commands I would normally run to do this are:
virsh net-define /path/to/mynetwork-config.xml

virsh net-autostart mynetwork
virsh net-start mynetwork

Is there a way that I can run these commands with the virt Ansible module? It says that it can support other libvirt commands, but I am unsure how to execute them?

Thanks,

Andrew

No, the virt ansible module originated from code in Func long ago and is pretty basic. It predates libvirt’s configuration of networking, storage, thermostats, and ability to facetweet to instatube.

I’d welcome additions however, though I’d question if maybe it needs to be in a ‘libvirt_network’ module to keep the arguments from intermixing.

Okay, thanks for the clarification!