Improve lego service to be more dynamic

This commit is contained in:
Tobias Reisinger 2024-10-13 16:33:09 +02:00
parent fa2059bb32
commit be3c610bd4
Signed by: serguzim
GPG key ID: 13AD60C237A28DFE
14 changed files with 64 additions and 46 deletions
roles/lego/vars

View file

@ -1,4 +1,6 @@
---
lego_host_certificates: "{{ all_services | my_service_attributes(inventory_hostname, 'certificates') }}"
lego_svc:
name: lego
@ -10,7 +12,6 @@ lego_env:
LEGO_PATH: /data
CERTIFICATES_PATH: "{{ certificates_path }}"
WIUWIU_TOKEN: "{{ vault_wiuwiu_token }}"
lego_compose:
watchtower: false