win_ansible_role_sshd/tasks/firewall.yml

13 lines
268 B
YAML
Raw Permalink Normal View History

2022-12-29 04:02:02 +01:00
---
- 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
2022-12-29 04:20:28 +01:00
register: _fw