diff options
author | Romain Gonçalves <me@rgoncalves.se> | 2024-01-01 13:28:29 +0100 |
---|---|---|
committer | Romain Gonçalves <me@rgoncalves.se> | 2024-01-01 13:28:29 +0100 |
commit | 420ed95b61e65439a20d6079c940aedfa8b82c29 (patch) | |
tree | d8bc2411da67864f950995c8d17af0cdbb6f4d29 /roles/acme/templates | |
parent | e5a65b550c719f427e0bb46f2e3149092b9e6285 (diff) | |
download | rules-420ed95b61e65439a20d6079c940aedfa8b82c29.tar.gz |
refactor(roles/acme): flatten authority variables
Diffstat (limited to 'roles/acme/templates')
-rw-r--r-- | roles/acme/templates/acme-client.conf.j2 | 8 |
1 files changed, 4 insertions, 4 deletions
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 %} |