ansible-nginx/handlers/main.yml

14 lines
266 B
YAML
Raw Normal View History

2015-07-15 17:14:39 +07:00
---
2015-07-15 20:18:51 +07:00
# Reload wrapper
2015-07-15 20:18:51 +07:00
- name: reload nginx
command: nginx -t
notify: real-reload nginx
- name: real-reload nginx
service: name=nginx state=reloaded
- name: restart nginx freebsd
service: name=nginx state=restarted
when: ansible_distribution == "FreeBSD"