From 6f8123441088de02c167bebbdef90921e1101fa4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Torma=20Krist=C3=B3f?= Date: Sat, 16 Apr 2022 20:40:50 +0200 Subject: [PATCH] better backup template --- roles/backupscript/templates/backupscript.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/roles/backupscript/templates/backupscript.sh b/roles/backupscript/templates/backupscript.sh index bb6bbc6..bdc616d 100644 --- a/roles/backupscript/templates/backupscript.sh +++ b/roles/backupscript/templates/backupscript.sh @@ -1,7 +1,9 @@ #!/usr/bin/env bash # {{ansible_managed}} +{% if backup.prearecommand is defined and backup.prearecommand|length > 0 %} {{backup.prearecommand}} +{% endif %} {% if backup.internal %}