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'