Change default notification to supervisord to make sure the service is started.
Add start/stop supervisord handlers for role.
This commit is contained in:
parent
c7b16f9f20
commit
a1ebd09e5e
|
@ -4,6 +4,14 @@
|
||||||
supervisorctl: name={{ uwsgi_app_service_name }} state=restarted config=/etc/supervisor/supervisor.conf
|
supervisorctl: name={{ uwsgi_app_service_name }} state=restarted config=/etc/supervisor/supervisor.conf
|
||||||
sudo: yes
|
sudo: yes
|
||||||
|
|
||||||
|
- name: start supervisord
|
||||||
|
service: name=supervisor state=started
|
||||||
|
sudo: yes
|
||||||
|
|
||||||
|
- name: start supervisord
|
||||||
|
service: name=supervisor state=started
|
||||||
|
sudo: yes
|
||||||
|
|
||||||
- name: restart supervisord
|
- name: restart supervisord
|
||||||
service: name=supervisor state=restarted
|
service: name=supervisor state=restarted
|
||||||
sudo: yes
|
sudo: yes
|
||||||
|
|
|
@ -22,4 +22,4 @@
|
||||||
- name: upload supervisor configuration to web server home
|
- name: upload supervisor configuration to web server home
|
||||||
template: src=supervisor/app_supervisor.conf dest=/etc/supervisor/conf.d/{{ supervisor_app_config }}
|
template: src=supervisor/app_supervisor.conf dest=/etc/supervisor/conf.d/{{ supervisor_app_config }}
|
||||||
sudo: yes
|
sudo: yes
|
||||||
notify: restart supervisord
|
notify: start supervisord
|
||||||
|
|
Loading…
Reference in New Issue