From 65c19c3629f5b3ecd72e247a2c546472539511b5 Mon Sep 17 00:00:00 2001 From: Luke Short Date: Mon, 30 Apr 2018 05:06:17 -0400 Subject: [PATCH] ovirt_vms: Clarified graphical_console arguments. (#39455) For protocol, it should be a list and all of the values are expected to be lowercase. An example is also added to show how to add both Spice and VNC consoles to a VM. --- lib/ansible/modules/cloud/ovirt/ovirt_vms.py | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/lib/ansible/modules/cloud/ovirt/ovirt_vms.py b/lib/ansible/modules/cloud/ovirt/ovirt_vms.py index 8c368953fc..2e4884c9ec 100644 --- a/lib/ansible/modules/cloud/ovirt/ovirt_vms.py +++ b/lib/ansible/modules/cloud/ovirt/ovirt_vms.py @@ -538,7 +538,7 @@ options: - "Assign graphical console to the virtual machine." - "Graphical console is a dictionary which can have following values:" - "C(headless_mode) - If I(true) disable the graphics console for this virtual machine." - - "C(protocol) - Graphical protocol, one of I(VNC), I(SPICE), or both." + - "C(protocol) - Graphical protocol, a list of I(spice), I(vnc), or both." version_added: "2.5" notes: - If VM is in I(UNASSIGNED) or I(UNKNOWN) state before any operation, the module will fail. @@ -809,6 +809,16 @@ EXAMPLES = ''' usb_support: True serial_console: True quota_id: "{{ ovirt_quotas[0]['id'] }}" + +- name: Create a VM that has the console configured for both Spice and VNC + ovirt_vms: + name: myvm + template: mytemplate + cluster: mycluster + graphical_console: + protocol: + - spice + - vnc '''