computer-playbook/roles/cleanup-disc-space/templates/cleanup-disc-space.service.j2

7 lines
200 B
Django/Jinja

[Unit]
Description=freeing disc space
OnFailure=systemd-notifier@%n.service
[Service]
Type=oneshot
ExecStart=/bin/bash {{free_disc_space_folder}}cleanup-disc-space.sh {{size_percent_free_disc_space}}