win_ansible_role_firewall_icmp/tasks/firewall.yml

23 lines
623 B
YAML
Raw Normal View History

2022-12-28 17:43:49 +01:00
---
- name: Firewall rule to alloc ICMP v4 on all type codes
community.windows.win_firewall_rule:
name: ICMP Allow incoming V4 echo request
2023-02-01 00:42:00 +01:00
enabled: true
2022-12-28 17:43:49 +01:00
state: present
profiles: "{{ win_firewall_icmp_profiles }}"
action: allow
direction: in
protocol: icmpv4
icmp_type_code: '*'
2023-02-01 00:42:00 +01:00
- name: Firewall rule to allow ICMP v6 on all type codes
2022-12-28 17:43:49 +01:00
community.windows.win_firewall_rule:
name: ICMP Allow incoming V6 echo request
2023-02-01 00:42:00 +01:00
enabled: true
2022-12-28 17:43:49 +01:00
state: present
profiles: "{{ win_firewall_icmp_profiles }}"
action: allow
direction: in
protocol: icmpv6
icmp_type_code: '*'