From ceb48f9028873616279cb60d97a3cbd115e9b7bf Mon Sep 17 00:00:00 2001 From: L3D Date: Mon, 11 Jan 2021 19:05:42 +0100 Subject: [PATCH] make al restic commands as bash executable --- templates/restic_mailsummary.j2 | 2 +- vars/main.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/templates/restic_mailsummary.j2 b/templates/restic_mailsummary.j2 index 1653d6d..01ace5b 100644 --- a/templates/restic_mailsummary.j2 +++ b/templates/restic_mailsummary.j2 @@ -26,7 +26,7 @@ cat <> /tmp/mailcontent $(restic check --quiet 2>/dev/null) $(restic --quiet stats --json | python3 -c "import sys, json; jsondata=json.load(sys.stdin); print('Repo size: ', str(int(jsondata['total_size'] / 1024 / 1024 / 1024 * 1000 )/1000 ), 'GB with ', str(jsondata['total_file_count']), ' Files.')") Latest Snapshots: -restic --quiet snapshots --last --json | jq -c '.[]' | while read i; do echo -e "$i" | python3 -c "import sys, json; jsondata=json.load(sys.stdin); print(' Hostname: ', jsondata['hostname'], ' \tbackup time: ', jsondata['time'], ' \tPath: ', str(jsondata['paths'][0]))" ; done +$(restic --quiet snapshots --last --json | jq -c '.[]' | while read i; do echo -e "$i" | python3 -c "import sys, json; jsondata=json.load(sys.stdin); print(' Hostname: ', jsondata['hostname'], ' \tbackup time: ', jsondata['time'], ' \tPath: ', str(jsondata['paths'][0]))" ; done) EOT {% if repo.archive|default(false) %} diff --git a/vars/main.yml b/vars/main.yml index a7b63f9..3ce637a 100644 --- a/vars/main.yml +++ b/vars/main.yml @@ -1,3 +1,3 @@ --- -playbook_version_number: 35 # should be over ninethousand +playbook_version_number: 36 # should be over ninethousand playbook_version_path: 'role-restic_archiver_roles-ansible_github.com.version'