From 244d81a9941d50798d933178533d7cd63e1c07ef Mon Sep 17 00:00:00 2001 From: Razvan Date: Tue, 25 Apr 2017 15:58:22 +0300 Subject: [PATCH] added crontab extra parameter --- defaults/main.yml | 1 + tasks/renew-cron.yml | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/defaults/main.yml b/defaults/main.yml index 7f6f0d3..4357276 100644 --- a/defaults/main.yml +++ b/defaults/main.yml @@ -4,6 +4,7 @@ certbot_auto_renew: true certbot_auto_renew_user: "{{ ansible_user }}" certbot_auto_renew_hour: 3 certbot_auto_renew_minute: 30 +certbot_auto_renew_parameters: "" # To install from source (on older OSes or if you need a specific or newer # version of Certbot), set this variable to `yes` and configure other options. diff --git a/tasks/renew-cron.yml b/tasks/renew-cron.yml index 7678a7c..db2a75c 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 }} renew --quiet --no-self-upgrade {{ certbot_auto_renew_parameters }}" minute: "{{ certbot_auto_renew_minute }}" hour: "{{ certbot_auto_renew_hour }}" user: "{{ certbot_auto_renew_user }}"