computer-playbook/roles/update-docker/templates/update-docker.service.j2

7 lines
208 B
Django/Jinja

[Unit]
Description=Updates Docker Instances
OnFailure=systemd-notifier@%n.service
[Service]
Type=oneshot
ExecStart=/bin/sh -c '/usr/bin/python {{update_docker_script}} {{docker_compose_instances_directory}}'