mirror of
https://github.com/geerlingguy/ansible-role-certbot.git
synced 2026-08-25 01:05:36 +02:00
Fixes #13: Add certbot-auto renew cron job.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user