win_ansible_role_firewall_icmp/tasks/firewall.yml
2023-02-01 16:49:39 +01:00

22 lines
623 B
YAML

---
- name: Firewall rule to alloc ICMP v4 on all type codes
community.windows.win_firewall_rule:
name: ICMP Allow incoming V4 echo request
enabled: true
state: present
profiles: "{{ win_firewall_icmp_profiles }}"
action: allow
direction: in
protocol: icmpv4
icmp_type_code: '*'
- name: Firewall rule to allow ICMP v6 on all type codes
community.windows.win_firewall_rule:
name: ICMP Allow incoming V6 echo request
enabled: true
state: present
profiles: "{{ win_firewall_icmp_profiles }}"
action: allow
direction: in
protocol: icmpv6
icmp_type_code: '*'