diff --git a/tasks/renew-cron.yml b/tasks/renew-cron.yml index 7678a7c..1b5ee81 100644 --- a/tasks/renew-cron.yml +++ b/tasks/renew-cron.yml @@ -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 }} {{certbot_renew_command}}" minute: "{{ certbot_auto_renew_minute }}" hour: "{{ certbot_auto_renew_hour }}" user: "{{ certbot_auto_renew_user }}" diff --git a/vars/Ubuntu-16.04.yml b/vars/Ubuntu-16.04.yml index 90e9138..c440c2e 100644 --- a/vars/Ubuntu-16.04.yml +++ b/vars/Ubuntu-16.04.yml @@ -1 +1,2 @@ certbot_package: letsencrypt +certbot_renew_command: "renew --no-self-upgrade" diff --git a/vars/default.yml b/vars/default.yml index d88f2dc..2f0327e 100644 --- a/vars/default.yml +++ b/vars/default.yml @@ -1,2 +1,3 @@ --- certbot_package: certbot +certbot_renew_command: "renew --quiet --no-self-upgrade"