Browse Source

Added cron task to automatically start the renewal process every month

Till Klocke 8 years ago
parent
commit
ffa74eb9a6
1 changed files with 9 additions and 0 deletions
  1. 9 0
      roles/service-nginx/tasks/acmetool.yml

+ 9 - 0
roles/service-nginx/tasks/acmetool.yml

@@ -9,3 +9,12 @@
 
 - name: ensure acmetool is installed
   apt: name=acmetool install_recommends=no
+
+- name: Ensure acmetool cronjob is installed
+  cron:
+    name: "Renew Let's Encrypt certificates"
+    job: /usr/bin/acmetool --batch reconcile
+    hour: 3
+    minute: 30
+    day: 1
+