From 4d8a28b89901a12401b0739b0bc51f3ac9c97b9a Mon Sep 17 00:00:00 2001 From: Wim de With Date: Thu, 23 May 2024 10:08:00 +0200 Subject: [PATCH] Add configuration option for RDP resize method --- README.md | 5 +++++ plugins/modules/guacamole_connection.py | 11 ++++++++++- 2 files changed, 15 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index cf0ea8b..854308d 100644 --- a/README.md +++ b/README.md @@ -169,6 +169,11 @@ OPTIONS (= is mandatory): [Default: (null)] type: bool +- rdp_resize_method + Resize method to use when the client display changes + (Choices: display-update, reconnect)[Default: (null)] + type: str + - rdp_security The security mode to use for the RDP connection (Choices: any, nla, nla-ext, tls, rdp)[Default: (null)] diff --git a/plugins/modules/guacamole_connection.py b/plugins/modules/guacamole_connection.py index 08cb24b..efcbe89 100644 --- a/plugins/modules/guacamole_connection.py +++ b/plugins/modules/guacamole_connection.py @@ -156,6 +156,13 @@ - Ignore rdp server certs type: bool + rdp_resize_method: + description: + - Resize method to use when the client display changes + choices: + - display-update + - reconnect + rdp_security: description: - The security mode to use for the RDP connection @@ -455,7 +462,8 @@ def guacamole_populate_connection_payload(module_params): "security", "server_layout", "width", - "height" + "height", + "resize_method" ) guacamole_add_parameter(payload, module_params, parameters, "rdp") if module_params.get('rdp_ignore_server_certs'): @@ -542,6 +550,7 @@ def main(): rdp_drive_path=dict(type='str'), rdp_enable_full_window_drag=dict(type='bool', default=True), rdp_ignore_server_certs=dict(type='bool', required=False), + rdp_resize_method=dict(type='str', choices=['display-update', 'reconnect'], required=False), rdp_security=dict(type='str', choices=['any', 'nla', 'nla-ext', 'tls', 'rdp'], required=False), rdp_server_layout=dict( type='str',