aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAaron LI <aly@aaronly.me>2019-09-22 10:28:05 +0800
committerAaron LI <aly@aaronly.me>2019-09-22 10:28:05 +0800
commite74c502c87e377fde811d984f82236561a136148 (patch)
tree3cdb51671d21d89c15a2e06fcb26d82d24c35ad8
parent0ac3a9599149c85e090c49e8ea537ac92418c33d (diff)
downloadansible-dfly-vps-e74c502c87e377fde811d984f82236561a136148.tar.bz2
web/handlers: Use 'service' module
-rw-r--r--roles/web/handlers/main.yml4
1 files changed, 3 insertions, 1 deletions
diff --git a/roles/web/handlers/main.yml b/roles/web/handlers/main.yml
index 765d2c1..ee5bd0d 100644
--- a/roles/web/handlers/main.yml
+++ b/roles/web/handlers/main.yml
@@ -1,3 +1,5 @@
---
- name: reload-nginx
- command: rcreload nginx
+ service:
+ name: nginx
+ state: reloaded