added crontab extra parameter

pull/27/head
Razvan 8 years ago
parent 01d801c4b7
commit 244d81a994
  1. 1
      defaults/main.yml
  2. 2
      tasks/renew-cron.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.

@ -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 }}"

Loading…
Cancel
Save