Add a wrapper: test configuration before reloading (better debugging)
parent
9a5afd09fa
commit
5445d66172
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue