ansible-personal/roles/nginx/templates/renew-letsencrypt.service.j2

8 lines
273 B
Plaintext
Raw Normal View History

[Unit]
Description=Renew Let's Encrypt certificates
[Service]
Type=oneshot
ConditionFileIsExecutable={{ letsencrypt_certbot_dest }}
ExecStart={{ letsencrypt_certbot_dest }} renew --standalone --pre-hook "/bin/systemctl stop nginx" --post-hook "/bin/systemctl start nginx"