aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAaron LI <aly@aaronly.me>2019-09-21 21:36:28 +0800
committerAaron LI <aly@aaronly.me>2019-09-21 21:36:28 +0800
commit0712e9493139c08288733e047332102bbf8fd30e (patch)
treed969263215a5f3487b69e24c53b185dbb8e0fb82
parent08990fc5461622996cbb7ebb6867b73636d3c446 (diff)
downloadansible-dfly-vps-0712e9493139c08288733e047332102bbf8fd30e.tar.bz2
security: Use 'service' module instead of rcrestart/rcreload
-rw-r--r--roles/security/handlers/main.yml8
1 files changed, 6 insertions, 2 deletions
diff --git a/roles/security/handlers/main.yml b/roles/security/handlers/main.yml
index d4926b7..6306534 100644
--- a/roles/security/handlers/main.yml
+++ b/roles/security/handlers/main.yml
@@ -1,6 +1,10 @@
---
- name: restart-syslogd
- command: rcrestart syslogd
+ service:
+ name: syslogd
+ state: restarted
- name: reload-pf
- command: rcreload pf
+ service:
+ name: pf
+ state: reloaded