aboutsummaryrefslogtreecommitdiffstats
path: root/group_vars/all.yml
diff options
context:
space:
mode:
authorRomain Gonçalves <me@rgoncalves.se>2023-01-09 22:39:47 +0100
committerRomain Gonçalves <me@rgoncalves.se>2023-04-02 11:45:09 +0200
commit1ff0fc1803fc71d925a0f2d0cf9c27058914044a (patch)
treeaff689ecd6397f2cf6ae9a4800b5f02b514afe17 /group_vars/all.yml
parentd1924d9c361470556dd1a935137a79bc0df8b099 (diff)
downloadrules-1ff0fc1803fc71d925a0f2d0cf9c27058914044a.tar.gz
feat(roles/pf): add argument specs
Diffstat (limited to 'group_vars/all.yml')
-rw-r--r--group_vars/all.yml7
1 files changed, 6 insertions, 1 deletions
diff --git a/group_vars/all.yml b/group_vars/all.yml
index 63697e8..fc3b760 100644
--- a/group_vars/all.yml
+++ b/group_vars/all.yml
@@ -13,7 +13,12 @@ acme_domain_name: "{{ __global_domain_name }}"
nfsclient_server: stack0
httpd_use_nfs: true
relayd_rules: "{{ __services }}"
-pf_rules: "{{ __services }}"
+pf_rules: "[
+ {% for rule in __services if
+ 'port' in rule and 'protocol' in rule and 'name' in rule %}
+ {{ {'name': rule.name, 'port': rule.port, 'protocol': rule.protocol} }},
+ {% endfor %}
+ ]"
acme_rules: "{{ __services }}"
# playbook specific
remember that computers suck.