pvc-ansible/roles/pvc/templates/autobackup/pvc-autobackup-normal.servi...

10 lines
378 B
Django/Jinja

[Unit]
Description=[Cron] PVC VM autobackup (normal)
[Service]
Type=oneshot
IgnoreSIGPIPE=false
KillMode=process
ExecCondition=/usr/bin/pvc --quiet node is-primary
ExecStart=/usr/bin/pvc --quiet vm autobackup --cron {% if pvc_autobackup.reporting.enabled and pvc_autobackup.reporting.report_on.normal %}--email-report {{ pvc_autobackup.reporting.emails|join(',') }}{% endif %}