added "sender_address" variable

This commit is contained in:
2023-04-01 11:14:03 +02:00
parent abac9630b4
commit c1d3d2b71b
3 changed files with 27 additions and 24 deletions

View File

@@ -8,6 +8,7 @@ mount_point="{{ mount_point }}"
backup_repository="$mount_point/{{borg_repo}}"
borg_password="{{borg_pass}}"
email_recipient="{{admin_mail}}"
sender_address="{{sender_adress}}"
# Mounten des Backup-Ziels
mount_successful=0
@@ -79,5 +80,5 @@ hostname=$(hostname)
mail_subject="Backup-Bericht: $hostname - $(date +'%Y-%m-%d %H:%M:%S')"
mail_body="$backup_result\n"
echo -e "$mail_body$target_usage_warning" | mail -s "$mail_subject" -r "no-reply@homeserver.zernis.ch" "$email_recipient"
echo -e "$mail_body$target_usage_warning" | mail -s "$mail_subject" -r "$sender_adress" "$email_recipient"
fi

View File

@@ -9,7 +9,7 @@ mount_point="{{ mount_point }}"
backup_repository="$mount_point/{{borg_repo}}"
borg_password="{{borg_pass}}"
email_recipient="{{admin_mail}}"
sender_address="{{sender_adress}}"
# Mounten des Backup-Ziels
mount_successful=0
@@ -81,5 +81,5 @@ hostname=$(hostname)
mail_subject="Backup-Bericht: $hostname - $(date +'%Y-%m-%d %H:%M:%S')"
mail_body="$backup_result\n"
echo -e "$mail_body$target_usage_warning" | mail -s "$mail_subject" -r "no-reply@homeserver.zernis.ch" "$email_recipient"
echo -e "$mail_body$target_usage_warning" | mail -s "$mail_subject" -r "$sender_address" "$email_recipient"
fi

View File

@@ -1,22 +1,24 @@
$ANSIBLE_VAULT;1.1;AES256
38323533333730343930363765333334613963343566663761376365303935646663323939333065
3762353331303463613139663066656135316664336466640a363131663435343562613066623562
39656336613366383230613736646661613038633663326335626239323634393761336637333736
3939653738386532610a666564363934306261386266656462616537373865336235373031323466
33633331326430623965316565633465666136623632613135353033633731643432613461656630
64303031376466323132396462623836373439363032653766336432373864306334613738303039
65666333326265316139646331336132366136356437666530386364383234656638366462653430
65616365623531303361623736373531353737316164303163306264663136333037333038663161
64643032633061656466303237326336313661333635346362636630323937386234346438633134
61373562303237623032373337613664656437663562383563613764306233653532626263643437
38643764336232373631363663626662323063663061386231316265373165323364343861393461
39393563323432316566306366363937626238636532313434356332626166363531313936333133
66313930323939376130356237666638316262636539303637636365633365303766633534666139
33333965333538383163373438333533636564346562353736666462626433386232306639636434
65633839333338346162643565633165633935646438306235316263386135616530336165336234
38323666313934393863643666623438306264316161383931336230616132363434396264653038
39666232313738373535626637643633366662303835626538353836346239666135366634353838
61373462346332336432663536666363303338653938643932643736396639393339653731343434
31333235666133343539353638353066333131646136356135663763616533636662656363326337
37333730373061663064356631623663616536653933393131663431346235303732623635393935
3766
38313036656235383665646630346533333133313162366637326664306133383439663634386534
6535663062616336366139323830393461353034333165610a623331333539623761343831333737
39333661363932636337313734666439383039326133623037623261366162666335663735613138
3266333365653030360a316636313133336365663430643464313530666564646164323166656535
62343231326162313334383638386232366461353735613963333164623938643238303238393061
35366561613863636164636363626536646364333464303137323132306339353061313966656239
30646233383332373531633435613230326239326632313736626131383237373664356232303239
30653236363966333962613534366164386538316535343564356234336632636235336231623535
36643661363432666139383436336564386337333962653432393063666531336566646565356166
35393031613234323961323764643733333962633834663066346166393066643434653937653864
39346361323530313730323839383838646363376165333738636233376636373763343364623734
34353530326461313537323430626164646164326166383330613435303362366230636566316330
36613063646539333264303630643133656338616235393037626137353838613733666539303132
36373634626438623137386234303234383261363438663132353334366634386561326436346239
31316338386565623737616563636233306534653566613361633834363038663832633038643536
30356234353665313161616639363639333237623862393330633365333466333337613435633861
65306330333365373562313438333438333838393631643638393431656661343532303661343063
38366566663164346635333136303864323863383864303166386662626264353138373236303030
33626461333064613930356238666464336465366663663538313338636365316338313036633434
39326266393238646332373738393064653766386134613230633633633162633034653463346139
37643436643139336632656162353932373837383463643337663030356364313337666362646566
64306531376538303834326565613463356361616461616531316537333966393934313838623138
366464656361346630656232306561666564