ansible-nginx/handlers/main.yml

29 lines
448 B
YAML
Raw Normal View History

2015-07-15 17:14:39 +07:00
---
2015-07-15 20:18:51 +07:00
- name: reload nginx
command: nginx -t
notify: real-reload nginx
2017-11-03 16:30:24 +07:00
- name: restart nginx
command: nginx -t
notify: real-restart nginx
- name: real-reload nginx
2017-10-26 20:47:30 +07:00
service:
name: nginx
state: reloaded
2017-11-03 16:30:24 +07:00
- name: real-restart nginx
service:
name: nginx
state: restarted
- name: restart nginx freebsd
2017-10-26 20:47:30 +07:00
service:
name: nginx
state: restarted
when: ansible_distribution == "FreeBSD"
2017-10-26 20:50:59 +07:00
- name: setup
action: setup