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