ansible-nginx-uwsgi-supervisor/handlers/main.yml

22 lines
517 B
YAML
Raw Normal View History

---
# handlers file for ansible-nginx-uwsgi-supervisor
- name: restart uwsgi app
2016-04-05 18:12:10 -04:00
supervisorctl: name={{ uwsgi_app_service_name }} state=restarted config=/etc/supervisor/supervisord.conf
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
service: name=supervisor state=restarted
sudo: yes
- name: restart nginx
service: name=nginx state=restarted
sudo: yes