win_ansible_role_sshd/tasks/firewall.yml
2022-12-29 04:20:28 +01:00

12 lines
268 B
YAML

---
- name: Firewall rule to allow SSH on TCP port 22
community.windows.win_firewall_rule:
name: SSH
localport: 22
action: allow
direction: in
protocol: tcp
state: present
profiles: domain,private,public
enabled: true
register: _fw