xoxys.lego/templates/etc/systemd/system/lego-renew.service.j2
Robert Kaussow c7e08070e3
All checks were successful
ci/woodpecker/push/lint Pipeline was successful
ci/woodpecker/push/test Pipeline was successful
ci/woodpecker/push/docs Pipeline was successful
ci/woodpecker/push/notify Pipeline was successful
disable random delay and fix test
2024-09-28 23:03:36 +02:00

18 lines
569 B
Django/Jinja

#jinja2:lstrip_blocks: True
{{ ansible_managed | comment }}
[Unit]
Description=Lego renew
Requires=network-online.target
After=network-online.target
[Service]
Type=oneshot
EnvironmentFile={{ __lego_systemd_env }}
{% for cert in lego_certificates %}
ExecStart={{ __lego_bin_file }} --email="{{ lego_acme_account_email }}" --domains {{ ' --domains '.join(cert.domains) }} $ARGS renew {{ '--renew-hook="' + __lego_base_dir + '/hooks/' + cert.name + '.sh"' if cert.hook is defined else '' }} --days 30 --no-random-sleep
{% endfor %}
[Install]
WantedBy=multi-user.target