Quellcode durchsuchen

Added cron task to automatically start the renewal process every month

Till Klocke vor 8 Jahren
Ursprung
Commit
ffa74eb9a6
1 geänderte Dateien mit 9 neuen und 0 gelöschten Zeilen
  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
+