Skip to content

Commit

Permalink
Add a wrapper: test configuration before reloading (better debugging)
Browse files Browse the repository at this point in the history
  • Loading branch information
Emilien Mantel committed Mar 15, 2016
1 parent 9a5afd0 commit 5445d66
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion handlers/main.yml
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 5445d66

Please sign in to comment.