Add a wrapper: test configuration before reloading (better debugging)

pull/22/head
Emilien Mantel 2016-03-15 15:57:46 +01:00
parent 9a5afd09fa
commit 5445d66172
1 changed files with 7 additions and 1 deletions

View File

@ -1,4 +1,10 @@
---
# Reload wrapper
- name: reload nginx
action: service name=nginx state=reloaded enabled=yes
command: nginx -t
changed_when: false
notify: real-reload nginx
- name: real-reload nginx
service: name=nginx state=reloaded