瀏覽代碼

Added cron task to automatically start the renewal process every month

Till Klocke 8 年之前
父節點
當前提交
ffa74eb9a6
共有 1 個文件被更改,包括 9 次插入0 次删除
  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
+