mirror of
https://github.com/HanXHX/ansible-nginx.git
synced 2026-11-30 03:37:22 +07:00
Restart nginx on SSL file writes
This commit is contained in:
1 parent
8675d683ec
commit
57968b50c0
2 files changed
+13
-5
No files matched your search
+9
-1
@@ -1,15 +1,23 @@
|
||||
---
|
||||
|
||||
# Reload wrapper
|
||||
- name: reload nginx
|
||||
command: nginx -t
|
||||
notify: real-reload nginx
|
||||
|
||||
- name: restart nginx
|
||||
command: nginx -t
|
||||
notify: real-restart nginx
|
||||
|
||||
- name: real-reload nginx
|
||||
service:
|
||||
name: nginx
|
||||
state: reloaded
|
||||
|
||||
- name: real-restart nginx
|
||||
service:
|
||||
name: nginx
|
||||
state: restarted
|
||||
|
||||
- name: restart nginx freebsd
|
||||
service:
|
||||
name: nginx
|
||||
|
||||
Reference in new issue
Block a user