Restart nginx on SSL file writes

This commit is contained in:
Emilien Mantel
2017-11-03 10:30:24 +01:00
parent 8675d683ec
commit 57968b50c0
2 changed files with 13 additions and 5 deletions

View File

@@ -1,15 +1,23 @@
---
# Reload wrapper
- name: reload nginx
command: nginx -t
notify: real-reload nginx
- name: restart nginx
command: nginx -t
notify: real-restart nginx
- name: real-reload nginx
service:
name: nginx
state: reloaded
- name: real-restart nginx
service:
name: nginx
state: restarted
- name: restart nginx freebsd
service:
name: nginx