From 5582074f59640eaad0b879c7c3b45bc3b0beefc8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Romain=20Gon=C3=A7alves?= Date: Sat, 14 Jan 2023 15:56:48 +0100 Subject: feat(roles/acme): add argument specs --- group_vars/all.yml | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) (limited to 'group_vars/all.yml') diff --git a/group_vars/all.yml b/group_vars/all.yml index 2ae2bbc..35abefd 100644 --- a/group_vars/all.yml +++ b/group_vars/all.yml @@ -9,13 +9,11 @@ ansible_become_method: su wireguard_domain_controller: "{{ __global_domain_controller }}" relayd_domain_name: "{{ __domain_name }}" -acme_domain_name: "{{ __global_domain_name }}" nfsclient_server: stack0 httpd_use_nfs: true -relayd_rules: "[ - {% for rule in __services if - 'domain' in rule and 'port' in rule %} - {{ {'name': rule.name, 'domain': rule.domain, 'port': rule.port} }}, +acme_rules: "[ + {% for rule in __services if 'domain' in rule %} + {{ {'domain': rule.domain} }}, {% endfor %} ]" pf_rules: "[ @@ -24,7 +22,12 @@ pf_rules: "[ {{ {'name': rule.name, 'port': rule.port, 'protocol': rule.protocol} }}, {% endfor %} ]" -acme_rules: "{{ __services }}" +relayd_rules: "[ + {% for rule in __services if + 'domain' in rule and 'port' in rule %} + {{ {'name': rule.name, 'domain': rule.domain, 'port': rule.port} }}, + {% endfor %} + ]" # playbook specific -- cgit v1.2.3