homeserver/roles/mgrote_cv4pve_autosnap/templates/cv4pve.service.j2
Michael Grote 1763fdf1b6
All checks were successful
ci/woodpecker/push/gitleaks Pipeline was successful
ci/woodpecker/push/ansible-lint Pipeline was successful
update cv4pve autosnap role (#20)
Reviewed-on: #20
Co-authored-by: Michael Grote <michael.grote@posteo.de>
Co-committed-by: Michael Grote <michael.grote@posteo.de>
2024-04-14 21:40:43 +02:00

9 lines
405 B
Django/Jinja

{{ file_header | default () }}
[Unit]
Description=Trigger VM-Snapshots in PVE with cv4pve.
After=multi-user.target
OnFailure=cv4pve_mail.service
[Service]
Type=simple
ExecStart={{ cv4pve_base_path }}/cv4pve-autosnap-{{ cv4pve_version }} --host=127.0.0.1 --api-token {{ cv4pve_api_user }}={{ cv4pve_api_token }} --vmid="{{ cv4pve_vmid }}" snap --label='daily' --keep="{{ cv4pve_keep_snapshots }}" --state