@@ -32,34 +32,34 @@ Role Variables
3232
3333 - ` state ` : set to ` present ` to create or ` absent ` to destroy the VM.
3434 Defaults to ` present ` .
35-
35+
3636 - ` name ` : the name to assign to the VM.
37-
37+
3838 - ` memory_mb ` : the memory to assign to the VM, in megabytes.
39-
39+
4040 - ` vcpus ` : the number of VCPU cores to assign to the VM.
41-
41+
4242 - ` machine ` : Virtual machine type. Default is ` None ` if
4343 ` libvirt_vm_engine ` is ` kvm ` , otherwise ` pc-1.0 ` .
44-
44+
4545 - ` cpu_mode ` : Virtual machine CPU mode. Default is ` host-passthrough ` if
4646 ` libvirt_vm_engine ` is ` kvm ` , otherwise ` host-model ` .
47-
47+
4848 - ` volumes ` : a list of volumes to attach to the VM. Each volume is
4949 defined with the following dict:
5050 - ` name ` : Name to associate with the volume being created.
51- - ` device ` : ` disk `
51+ - ` device ` : ` disk `
5252 - ` format ` : options include ` raw ` , ` qcow2 ` , ` vmdk ` . See ` man virsh ` for the
53- full range. Default is ` qcow2 `
53+ full range. Default is ` qcow2 `
5454 - ` capacity ` : volume capacity (can be suffixed with M,G,T or MB,GB,TB, etc)
5555 - ` image ` : (optional) a URL to an image with which the volume is initalised.
5656 - ` pool ` : Name or UUID of the storage pool from which the volume should be
5757 allocated.
58-
58+
5959 - ` interfaces ` : a list of network interfaces to attach to the VM.
6060 Each network interface is defined with the following dict:
6161 - ` network ` : Name of the network to which an interface should be attached.
62-
62+
6363 - ` console_log_path ` : Path to console log file. Default is
6464 ` {{ libvirt_vm_default_console_log_dir }}/{{ name }}-console.log ` .
6565
0 commit comments