xoxys.droneci/templates/etc/systemd/system/drone.service.j2
Robert Kaussow 720e4381c3
All checks were successful
continuous-integration/drone/push Build is passing
fix ansible_managed handling
2019-08-28 10:20:31 +02:00

20 lines
438 B
Django/Jinja

#jinja2:lstrip_blocks: True
{{ ansible_managed | comment }}
[Unit]
Description=Drone CI compose service
Requires=docker.service
After=docker.service
[Service]
Restart={{ droneci_restart_policy }}
WorkingDirectory={{ droneci_service_directory }}
ExecStartPre=/bin/docker-compose down
ExecStartPre=/bin/docker-compose rm -f
ExecStart=/usr/bin/docker-compose up
ExecStop=/usr/bin/docker-compose down
[Install]
WantedBy=multi-user.target