Skip to content

Commit

Permalink
add loops over campus network
Browse files Browse the repository at this point in the history
  • Loading branch information
kayiwa committed Dec 20, 2024
1 parent 5eb6f21 commit a5155ec
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 a5155ec

Please sign in to comment.