Packer.Images/ansible/roles/firstboot/files/ansible_payload/bootstrap/templates/compresstarballs.j2
Danny Bessems c1bff94cd1
Some checks failed
continuous-integration/drone/push Build is failing
Parallel build of bootstrap/upgrade ova;Split ansible tasks respectively
2023-01-18 15:09:32 +01:00

11 lines
244 B
Django/Jinja

#!/bin/bash
# Change working directory
pushd {{ _template.service.workingdir }}
# Compress *.tar files
if tar -czf image-tarballs.tgz *.tar --remove-files; then
# Disable systemd unit
systemctl disable {{ _template.service.name }}
fi