infra/roles/nginx-role/handlers/main.yml

11 lines
228 B
YAML
Raw Normal View History

2019-06-29 00:27:16 +03:00
---
- name: restart nginx
service: name=nginx state=restarted
- name: validate nginx configuration
command: nginx -t -c /etc/nginx/nginx.conf
changed_when: false
- name: reload nginx
service: name=nginx state=reloaded