From 36d5dacd92d8b46ba2d313b24e8b111633e009db Mon Sep 17 00:00:00 2001 From: Joey Grant Date: Tue, 6 Aug 2024 09:46:14 -0400 Subject: [PATCH] feat(rdp): add admin console option Adds the parameter `rdp_console` which allows the user to set the rdp connection as an admin. --- README.md | 4 ++++ plugins/modules/guacamole_connection.py | 9 ++++++++- 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 854308d..217be5d 100644 --- a/README.md +++ b/README.md @@ -140,6 +140,10 @@ OPTIONS (= is mandatory): (Choices: 8, 16, 24, 32)[Default: (null)] type: int +- rdp_console Sets session as admin + default: null + type: bool + - rdp_domain Domain for the connection [Default: (null)] diff --git a/plugins/modules/guacamole_connection.py b/plugins/modules/guacamole_connection.py index 5eaf757..9adf0d3 100644 --- a/plugins/modules/guacamole_connection.py +++ b/plugins/modules/guacamole_connection.py @@ -206,6 +206,11 @@ - Display height type: int + rdp_console: + description: + - Sets session as admin + type: bool + ssh_passphrase: description: - Passphrase for the SSH private key @@ -471,7 +476,8 @@ def guacamole_populate_connection_payload(module_params): "server_layout", "width", "height", - "resize_method" + "resize_method", + "console" ) guacamole_add_parameter(payload, module_params, parameters, "rdp") if module_params.get('rdp_ignore_server_certs'): @@ -583,6 +589,7 @@ def main(): ), rdp_width=dict(type='int'), rdp_height=dict(type='int'), + rdp_console=dict(type='bool', default=False, required=False), state=dict(type='str', choices=['absent', 'present'], default='present'), max_connections=dict(type='int', required=False), max_connections_per_user=dict(type='int'),