mirror of
https://github.com/HanXHX/ansible-nginx.git
synced 2026-02-24 09:03:29 +07:00
Add a wrapper: test configuration before reloading (better debugging)
This commit is contained in:
@@ -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