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

12 lines
253 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