From 420ed95b61e65439a20d6079c940aedfa8b82c29 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Romain=20Gon=C3=A7alves?= Date: Mon, 1 Jan 2024 13:28:29 +0100 Subject: refactor(roles/acme): flatten authority variables --- roles/acme/templates/acme-client.conf.j2 | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'roles/acme/templates/acme-client.conf.j2') diff --git a/roles/acme/templates/acme-client.conf.j2 b/roles/acme/templates/acme-client.conf.j2 index a6516c6..9453cec 100644 --- a/roles/acme/templates/acme-client.conf.j2 +++ b/roles/acme/templates/acme-client.conf.j2 @@ -1,9 +1,9 @@ # managed by Ansible {% import 'macros.j2' as macros with context %} -authority {{ acme_authority.name }} { - api url "{{ acme_authority.url }}" - account key "{{ acme_authority.key }}" +authority {{ acme_authority_name }} { + api url "{{ acme_authority_url }}" + account key "{{ acme_authority_key }}" } {% call(h) macros.loop_valid_hosts(relayd_connected_hosts) -%} @@ -13,7 +13,7 @@ domain {{ rule.domain }} { alternative names { www.{{ rule.domain }} } domain key "{{ acme_keys_dir }}/{{ rule.domain }}.key" domain full chain certificate "{{ acme_certificates_dir }}/{{ rule.domain }}.crt" - sign with {{ acme_authority.name }} + sign with {{ acme_authority_name }} } {% endfor %} {%- endcall %} -- cgit v1.2.3