2019-05-10 08:55:14 +00:00
|
|
|
#jinja2:lstrip_blocks: True
|
2019-08-28 08:20:31 +00:00
|
|
|
{{ ansible_managed | comment }}
|
2019-05-10 08:55:14 +00:00
|
|
|
[Unit]
|
|
|
|
Description=Drone CI compose service
|
|
|
|
Requires=docker.service
|
|
|
|
After=docker.service
|
|
|
|
|
|
|
|
[Service]
|
|
|
|
Restart={{ droneci_restart_policy }}
|
|
|
|
WorkingDirectory={{ droneci_service_directory }}
|
|
|
|
|
2019-11-24 22:29:06 +00:00
|
|
|
ExecStartPre={{ droneci_docker_compose_bin }} pull --quiet --ignore-pull-failures
|
|
|
|
ExecStart={{ droneci_docker_compose_bin }} up --remove-orphans
|
2019-05-10 08:55:14 +00:00
|
|
|
|
2019-11-24 22:29:06 +00:00
|
|
|
ExecStop={{ droneci_docker_compose_bin }} down --remove-orphans
|
2019-11-24 22:23:22 +00:00
|
|
|
|
2019-11-24 22:29:06 +00:00
|
|
|
ExecReload={{ droneci_docker_compose_bin }} pull --quiet --ignore-pull-failures
|
2019-05-10 08:55:14 +00:00
|
|
|
|
|
|
|
[Install]
|
|
|
|
WantedBy=multi-user.target
|