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
9090 - ` enable_vnc ` : If true enables VNC listening on localhost for use with
9191 VirtManager and similar tools
9292
93+ - ` enable_spice ` : If true enables SPICE listening for use with
94+ Virtual Machine Manager and similar tools
95+
9396 - ` volumes ` : a list of volumes to attach to the VM. Each volume is
9497 defined with the following dict:
9598 - ` type ` : What type of backing volume does the instance use? All
Original file line number Diff line number Diff line change 3737 start : " {{ vm.start | default(true) }}"
3838 autostart : " {{ vm.autostart | default(true) }}"
3939 enable_vnc : " {{ vm.enable_vnc | default(false) }}"
40+ enable_spice : " {{ vm.enable_spice | default(false) }}"
4041 with_items : " {{ libvirt_vms }}"
4142 loop_control :
4243 loop_var : vm
5455 with_items : " {{ libvirt_vms }}"
5556 loop_control :
5657 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 103103 <graphics type =' vnc' autoport =' yes' listen =' 127.0.0.1' >
104104 <listen type =' address' address =' 127.0.0.1' />
105105 </graphics >
106+ {% endif %}
107+ {% if enable_spice |bool %}
108+ <graphics type =' spice' autoport =' yes' >
109+ <listen type =' address' />
110+ </graphics >
106111{% endif %}
107112 <rng model =" virtio" ><backend model =" random" >/dev/urandom</backend ></rng >
108113 </devices >
You can’t perform that action at this time.
0 commit comments