mirror of
https://github.com/HanXHX/ansible-nginx.git
synced 2026-11-08 03:24:04 +07:00
Add a wrapper: test configuration before reloading (better debugging)
This commit is contained in:
1 parent
9a5afd09fa
commit
5445d66172
1 file changed
+7
-1
+7
-1
@@ -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
|
||||
Reference in new issue
Block a user