@@ -32,34 +32,39 @@ Role Variables
32
32
33
33
- ` state ` : set to ` present ` to create or ` absent ` to destroy the VM.
34
34
Defaults to ` present ` .
35
-
35
+
36
36
- ` name ` : the name to assign to the VM.
37
-
37
+
38
38
- ` memory_mb ` : the memory to assign to the VM, in megabytes.
39
-
39
+
40
40
- ` vcpus ` : the number of VCPU cores to assign to the VM.
41
-
41
+
42
42
- ` machine ` : Virtual machine type. Default is ` None ` if
43
43
` libvirt_vm_engine ` is ` kvm ` , otherwise ` pc-1.0 ` .
44
-
44
+
45
45
- ` cpu_mode ` : Virtual machine CPU mode. Default is ` host-passthrough ` if
46
46
` libvirt_vm_engine ` is ` kvm ` , otherwise ` host-model ` .
47
-
47
+
48
48
- ` volumes ` : a list of volumes to attach to the VM. Each volume is
49
49
defined with the following dict:
50
50
- ` name ` : Name to associate with the volume being created.
51
- - ` device ` : ` disk `
51
+ - ` device ` : ` disk `
52
52
- ` format ` : options include ` raw ` , ` qcow2 ` , ` vmdk ` . See ` man virsh ` for the
53
- full range. Default is ` qcow2 `
53
+ full range. Default is ` qcow2 `
54
54
- ` capacity ` : volume capacity (can be suffixed with M,G,T or MB,GB,TB, etc)
55
55
- ` image ` : (optional) a URL to an image with which the volume is initalised.
56
56
- ` pool ` : Name or UUID of the storage pool from which the volume should be
57
57
allocated.
58
-
58
+
59
59
- ` interfaces ` : a list of network interfaces to attach to the VM.
60
60
Each network interface is defined with the following dict:
61
61
- ` network ` : Name of the network to which an interface should be attached.
62
-
62
+
63
+ - ` console_log_enabled ` : if ` true ` , log console output to a file at the
64
+ path specified by ` console_log_path ` , ** instead of** to a PTY. If
65
+ ` false ` , direct terminal output to a PTY at serial port 0. Default is
66
+ ` false ` .
67
+
63
68
- ` console_log_path ` : Path to console log file. Default is
64
69
` {{ libvirt_vm_default_console_log_dir }}/{{ name }}-console.log ` .
65
70
0 commit comments