From f6452a9a402c4e2bd476a48397057590c71fb0c5 Mon Sep 17 00:00:00 2001 From: L3D Date: Sat, 31 Dec 2022 15:50:03 +0100 Subject: [PATCH] enable remote desktop firewall --- tasks/main.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tasks/main.yml b/tasks/main.yml index b38eef0..eb1e3f2 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -27,6 +27,11 @@ script: 'Set-ItemProperty ‘HKLM:\SYSTEM\CurrentControlSet\Control\Terminal Server\WinStations\RDP-Tcp\‘ -Name “UserAuthentication” -Value 1' changed_when: _a.changed +- name: Enable Remote Desktop connections + ansible.windows.win_powershell: + script: 'Enable-NetFirewallRule -DisplayGroup “Remote Desktop”' + changed_when: _a.changed + - name: Firewall rule to allow RDP on TCP port 3389 community.windows.win_firewall_rule: name: Remote Desktop