Files
toallab-automation/roles/oatakan.windows_template_build/tasks/enable-rdp.yml
2020-08-17 12:06:41 -04:00

19 lines
342 B
YAML

---
- name: enable RDP port
win_firewall_rule:
name: Remote Desktop
localport: 3389
action: allow
direction: in
protocol: tcp
state: present
enabled: yes
- name: enable RDP
win_regedit:
path: HKLM:\System\CurrentControlSet\Control\Terminal Server
name: fDenyTSConnections
data: 0
type: dword