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