diff options
author | Romain Gonçalves <me@rgoncalves.se> | 2022-12-17 21:59:58 +0100 |
---|---|---|
committer | Romain Gonçalves <me@rgoncalves.se> | 2022-12-21 17:19:46 +0100 |
commit | 8ce56f15e0751870b56805010241dcfe8389b10f (patch) | |
tree | 5cb2c136ea8d829c93810d908e63501ff79afd6e /roles/pf/templates/pf.conf.j2 | |
parent | 783cfa8469c7922f787305e15e95c0619479744b (diff) | |
download | rules-8ce56f15e0751870b56805010241dcfe8389b10f.tar.gz |
refactor: remove global __services from roles
Diffstat (limited to 'roles/pf/templates/pf.conf.j2')
-rw-r--r-- | roles/pf/templates/pf.conf.j2 | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/roles/pf/templates/pf.conf.j2 b/roles/pf/templates/pf.conf.j2 index 1b51fe7..e60b4a6 100644 --- a/roles/pf/templates/pf.conf.j2 +++ b/roles/pf/templates/pf.conf.j2 @@ -11,8 +11,9 @@ block all pass in quick on egress proto tcp to port {{ ansible_port }} # host services -{% for service in __services %} -pass in quick on egress proto {{ service["protocol"] }} to port {{ service["port"] }} +{% for name, rules in pf_rules.items() %} +# {{ name }} +pass in quick on egress proto {{ rules.protocol }} to port {{ rules.port }} {% endfor %} # wireguard |