This module interacts with the Windows hosts' local firewall to configure its rules. This is shown by the following playbook, which enables the VNC protocol:
- name: enable the VNC port on the host local
firewall
win_firewall_rule:
name: VNC
localport: 5900
protocol: udp
direction: in
action: allow
state: present
enabled: yes
This module also needs to be executed by a local or domain administrator.