๐Ÿ“— Ansible playbooks and roles for building an idempotent, interconnected and scalable infrastructure
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
ansible-playbooks/roles/workstation/tasks/win_firewall.yml

30 lines
642 B

2 years ago
- name: allow ICMP for local network
win_firewall_rule:
name: ICMP - Local network
description: "Allow ICMP packets from corp network"
enabled: yes
action: allow
direction: in
profiles:
- domain
- private
protocol: icmpv4
remoteip: "{{ int_net }}"
state: present
- name: allow SMB for local network
win_firewall_rule:
name: SMB - Local network
description: "Allow SMB packets from corp network"
enabled: yes
action: allow
direction: in
profiles:
- domain
- private
protocol: tcp
remoteip: "{{ int_net }}"
remoteport: 445
state: present