Fixes #13: Add certbot-auto renew cron job.

This commit is contained in:
Jeff Geerling
2017-01-21 15:16:45 -06:00
parent a2f63847fd
commit d76e3915fe
3 changed files with 24 additions and 0 deletions
+9
View File
@@ -10,3 +10,12 @@
file:
path: "{{ certbot_dir }}/certbot-auto"
mode: 0755
- name: Add cron job for 'certbot-auto renew' (if configured).
cron:
name: Certbot automatic renewal.
job: "{{ certbot_dir }}/certbot-auto renew --quiet --no-self-upgrade"
minute: "{{ certbot_auto_renew_minute }}"
hour: "{{ certbot_auto_renew_hour }}"
user: "{{ certbot_auto_renew_user }}"
when: certbot_auto_renew