1
0
Fork 0
mirror of https://github.com/roles-ansible/ansible_role_restic_archiver.git synced 2024-08-16 10:09:49 +02:00

Add additional msgs

This commit is contained in:
L3D 2021-01-13 12:14:11 +01:00
parent a45be50943
commit de2dab2502
No known key found for this signature in database
GPG key ID: 5215C3441797AB2B
3 changed files with 6 additions and 2 deletions

View file

@ -55,5 +55,7 @@ restic_archiver__mailaddress: 'root@localhost'
# restic default options # restic default options
restic_archiver__default_opt: '' restic_archiver__default_opt: ''
# additional msgs
restic_archiver__additional_mail_msg: ''
# version check for this playbook (true is recomended) # version check for this playbook (true is recomended)
submodules_versioncheck: false submodules_versioncheck: false

View file

@ -11,7 +11,7 @@ cat <<EOT > /tmp/mailcontent
</head> </head>
<body> <body>
<h1>SUMMARY for Restic BACKUP</h1> <h1>SUMMARY for Restic BACKUP</h1>
{{ restic_archiver__additional_mail_msg | default ('') }}
EOT EOT
{% for repo in restic_archiver__repos %} {% for repo in restic_archiver__repos %}
@ -86,7 +86,9 @@ cat <<EOT >> /tmp/mailcontent
<br/><br/><br/> <br/><br/><br/>
<br/><br/><br/> <br/><br/><br/>
<code> <code>
<pre>
$(df -h) $(df -h)
</pre>
</code> </code>
</body> </body>
</html> </html>

View file

@ -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' playbook_version_path: 'role-restic_archiver_roles-ansible_github.com.version'