From 1ff0fc1803fc71d925a0f2d0cf9c27058914044a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Romain=20Gon=C3=A7alves?= Date: Mon, 9 Jan 2023 22:39:47 +0100 Subject: feat(roles/pf): add argument specs --- group_vars/all.yml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'group_vars') 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 -- cgit v1.2.3