ansible-role-apache/roles/ansible-role-nginx/handlers/main.yml
2016-07-06 07:38:28 +10:00

10 lines
228 B
YAML
Executable file

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