infra/roles/nginx-role/handlers/main.yml
Sergey Bubnov (omg) 8dc65328a3 new nginx role
2019-06-29 01:27:16 +04:00

11 lines
228 B
YAML

---
- 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