renew: add variable for optional --debug flag

Signed-off-by: Jakub Sokołowski <jakub@status.im>
This commit is contained in:
Jakub Sokołowski 2025-01-21 21:45:20 +01:00
parent dfd0bce4e5
commit 07fe3f0749
No known key found for this signature in database
GPG Key ID: FE65CD384D5BF7B4
2 changed files with 4 additions and 1 deletions

View File

@ -12,6 +12,7 @@ certbot_certs: []
# - example3.com
certbot_entrypoint: '/usr/bin/certbot'
certbot_debug_logs: false
certbot_create_arguments: >-
certonly
--standalone

View File

@ -14,7 +14,9 @@
systemd_timer_restart_retries: '{{ certbot_auto_renew_restart_retries }}'
systemd_timer_script_path: '{{ certbot_entrypoint }}'
systemd_timer_start_on_creation: false
systemd_timer_script_args: 'renew'
systemd_timer_script_args: >-
renew
{% if certbot_debug_logs %}--debug{% endif %}
systemd_timer_exec_start_pre: |
{{ (["docker stop "] | product(certbot_containers_to_stop) | map("join")) +
(["systemctl stop "] | product(certbot_services_to_stop) | map("join")) }}