xoxys.droneci_autoscaler/handlers/main.yml

12 lines
403 B
YAML
Raw Normal View History

2020-12-06 21:13:08 +00:00
---
- name: Restart scaler service
docker_compose:
2020-12-06 21:22:03 +00:00
project_src: "{{ __droneci_autoscaler_workdir }}"
2020-12-06 21:13:08 +00:00
pull: yes
remove_orphans: yes
stopped: "{{ inst.service_stopped | default(droneci_autoscaler_service_stopped) }}"
2021-02-25 10:22:05 +00:00
restarted: "{{ not (inst.service_stopped | default(droneci_autoscaler_service_stopped)) }}"
2020-12-06 21:13:08 +00:00
listen: __droneci_autoscaler_restart
become: True
become_user: root