Skip to content

Commit

Permalink
allow loops for campus and vpn
Browse files Browse the repository at this point in the history
these rules are dynamically built and expected by the template
  • Loading branch information
kayiwa committed Dec 20, 2024
1 parent e435348 commit dd740f0
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions roles/ufw_firewall/vars/main.yml
Original file line number Diff line number Diff line change
@@ -1,2 +1,8 @@
---
# vars file for roles/ufw_firewall
ufw_firewall_rules: >
{%- set rules = [] -%}
{%- for network in ufw_campus_and_vpn -%}
{{ rules.append({'protocol': 'tcp', 'source': network, 'port': 22, 'action': 'ACCEPT'}) }}
{%- endfor -%}
{{ rules }}

0 comments on commit dd740f0

Please sign in to comment.