File tree Expand file tree Collapse file tree 3 files changed +10
-1
lines changed Expand file tree Collapse file tree 3 files changed +10
-1
lines changed Original file line number Diff line number Diff line change @@ -90,6 +90,9 @@ Role Variables
90
90
- ` enable_vnc ` : If true enables VNC listening on localhost for use with
91
91
VirtManager and similar tools
92
92
93
+ - ` enable_spice ` : If true enables SPICE listening for use with
94
+ Virtual Machine Manager and similar tools
95
+
93
96
- ` volumes ` : a list of volumes to attach to the VM. Each volume is
94
97
defined with the following dict:
95
98
- ` type ` : What type of backing volume does the instance use? All
Original file line number Diff line number Diff line change 37
37
start : " {{ vm.start | default(true) }}"
38
38
autostart : " {{ vm.autostart | default(true) }}"
39
39
enable_vnc : " {{ vm.enable_vnc | default(false) }}"
40
+ enable_spice : " {{ vm.enable_spice | default(false) }}"
40
41
with_items : " {{ libvirt_vms }}"
41
42
loop_control :
42
43
loop_var : vm
54
55
with_items : " {{ libvirt_vms }}"
55
56
loop_control :
56
57
loop_var : vm
57
- when : (vm.state | default('present', true)) == 'absent'
58
+ when : (vm.state | default('present', true)) == 'absent'
Original file line number Diff line number Diff line change 103
103
<graphics type =' vnc' autoport =' yes' listen =' 127.0.0.1' >
104
104
<listen type =' address' address =' 127.0.0.1' />
105
105
</graphics >
106
+ {% endif %}
107
+ {% if enable_spice |bool %}
108
+ <graphics type =' spice' autoport =' yes' >
109
+ <listen type =' address' />
110
+ </graphics >
106
111
{% endif %}
107
112
<rng model =" virtio" ><backend model =" random" >/dev/urandom</backend ></rng >
108
113
</devices >
You can’t perform that action at this time.
0 commit comments