소스 검색

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
+