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

This commit is contained in:
Emilien Mantel
2016-03-15 15:57:46 +01:00
parent 9a5afd09fa
commit 5445d66172

View File

@@ -1,4 +1,10 @@
--- ---
# Reload wrapper
- name: reload nginx - 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