#!/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