Explorar o código

Added cron task to automatically start the renewal process every month

Till Klocke %!s(int64=8) %!d(string=hai) anos
pai
achega
ffa74eb9a6
Modificáronse 1 ficheiros con 9 adicións e 0 borrados
  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
+