From de2dab2502ef8e91d65e98823dc0e314aa583a24 Mon Sep 17 00:00:00 2001 From: L3D Date: Wed, 13 Jan 2021 12:14:11 +0100 Subject: [PATCH] Add additional msgs --- defaults/main.yml | 2 ++ templates/restic_mailsummary.j2 | 4 +++- vars/main.yml | 2 +- 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/defaults/main.yml b/defaults/main.yml index ae053cd..70ef392 100644 --- a/defaults/main.yml +++ b/defaults/main.yml @@ -55,5 +55,7 @@ restic_archiver__mailaddress: 'root@localhost' # restic default options restic_archiver__default_opt: '' +# additional msgs +restic_archiver__additional_mail_msg: '' # version check for this playbook (true is recomended) submodules_versioncheck: false diff --git a/templates/restic_mailsummary.j2 b/templates/restic_mailsummary.j2 index ea269f7..24cd35e 100644 --- a/templates/restic_mailsummary.j2 +++ b/templates/restic_mailsummary.j2 @@ -11,7 +11,7 @@ cat < /tmp/mailcontent

SUMMARY for Restic BACKUP

- +{{ restic_archiver__additional_mail_msg | default ('') }} EOT {% for repo in restic_archiver__repos %} @@ -86,7 +86,9 @@ cat <> /tmp/mailcontent





+
 $(df -h)
+
diff --git a/vars/main.yml b/vars/main.yml index b246986..5b6ed07 100644 --- a/vars/main.yml +++ b/vars/main.yml @@ -1,3 +1,3 @@ --- -playbook_version_number: 37 # should be over ninethousand +playbook_version_number: 38 # should be over ninethousand playbook_version_path: 'role-restic_archiver_roles-ansible_github.com.version'