group: root
mode: '0700'
force: no
-
-- name: Configure dehydrated weekly run
- become: true
- template:
- src: dehydrated
- dest: /etc/cron.weekly
- owner: root
- group: root
- mode: '0700'
- force: no
+++ /dev/null
-#!/bin/sh
-cd "`dirname \"$0\"`" &&
-exec /usr/local/apache2/.dehydrated/{{ virtual_host }}/dehydrated
--- /dev/null
+#!/bin/sh
+
+cd "`dirname \"$0\"`" &&
+for dehydrated in /usr/local/apache2/.dehydrated/*/dehydrated; do
+ if test "$dehydrated" = "/usr/local/apache2/.dehydrated/*/dehydrated"; then
+ exit
+ fi
+ $dehydrated
+done
synchronize:
src: /usr/local/src/LetsEncrypt/dehydrated
dest: /usr/local/src/LetsEncrypt
+
+- name: Configure dehydrated weekly run
+ become: true
+ copy:
+ src: dehydrated
+ dest: /etc/cron.weekly
+ owner: root
+ group: root
+ mode: '0700'