xoxys.droneci_autoscaler/handlers/main.yml
Robert Kaussow 0f7e081d83
All checks were successful
continuous-integration/drone/push Build is passing
fix workdir in handler
2020-12-06 22:22:03 +01:00

12 lines
401 B
YAML

---
- name: Restart scaler service
docker_compose:
project_src: "{{ __droneci_autoscaler_workdir }}"
pull: yes
remove_orphans: yes
stopped: "{{ inst.service_stopped | default(droneci_autoscaler_service_stopped) }}"
restarted: "{{ not inst.service_stopped | default(droneci_autoscaler_service_stopped) }}"
listen: __droneci_autoscaler_restart
become: True
become_user: root