allow cron renew arguments to be configurable

Default implementation provides a backward compatible solution
and fixes the issue where the "--quiet" argument doesn't exist
anymore in Ubuntu 16.04's default installation of letsencrypt.
This commit is contained in:
Dieter Provoost 2017-09-30 11:58:35 +02:00
parent f00a0ba181
commit ce3a65be99
3 changed files with 3 additions and 1 deletions

View File

@ -2,7 +2,7 @@
- name: Add cron job for certbot renewal (if configured).
cron:
name: Certbot automatic renewal.
job: "{{ certbot_script }} renew --quiet --no-self-upgrade"
job: "{{ certbot_script }} renew {{ certbot_auto_renew_args }}"
minute: "{{ certbot_auto_renew_minute }}"
hour: "{{ certbot_auto_renew_hour }}"
user: "{{ certbot_auto_renew_user }}"

View File

@ -1 +1,2 @@
certbot_package: letsencrypt
certbot_auto_renew_args: "--no-self-upgrade"

View File

@ -1,2 +1,3 @@
---
certbot_package: certbot
certbot_auto_renew_args: "--quiet --no-self-upgrade"