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

10 lines
273 B
YAML

---
# handlers file for ansible-nginx-uwsgi-supervisor
- name: restart uwsgi app
supervisorctl: name={{ uwsgi_app_service_name }} state=restarted config=/etc/supervisor/supervisord.conf
sudo: yes
- name: restart nginx
service: name=nginx state=restarted
sudo: yes