This commit is contained in:
parent
f68a5feb2e
commit
46aaff854a
11
handlers/main.yml
Normal file
11
handlers/main.yml
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
---
|
||||||
|
- name: Restart scaler service
|
||||||
|
docker_compose:
|
||||||
|
project_src: "{{ scaler_service_directory }}"
|
||||||
|
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
|
@ -43,6 +43,7 @@
|
|||||||
template:
|
template:
|
||||||
src: services/userdata.yml.j2
|
src: services/userdata.yml.j2
|
||||||
dest: "{{ __droneci_autoscaler_workdir }}/userdata.yml"
|
dest: "{{ __droneci_autoscaler_workdir }}/userdata.yml"
|
||||||
|
notify: __droneci_autoscaler_restart
|
||||||
|
|
||||||
- name: Ensure scaler is up and running
|
- name: Ensure scaler is up and running
|
||||||
docker_compose:
|
docker_compose:
|
||||||
|
Loading…
Reference in New Issue
Block a user