xoxys.droneci_autoscaler/handlers/main.yml

12 lines
403 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