roles/nginx: Fix systemd unit for renewing Let's Encrypt certs

The `ConditionFileIsExecutable` goes in the [Unit] section! This
fixes the error:

  systemd[1]: [/etc/systemd/system/renew-letsencrypt.service:6] Unknown lvalue 'ConditionFileIsExecutable' in section 'Service'
This commit is contained in:
Alan Orth 2016-09-25 15:55:45 +03:00
parent 850342a175
commit 158df52e35
Signed by: alanorth
GPG Key ID: 0FB860CC9C45B1B9

View File

@ -1,7 +1,7 @@
[Unit]
Description=Renew Let's Encrypt certificates
ConditionFileIsExecutable={{ letsencrypt_certbot_dest }}
[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"