From 0712e9493139c08288733e047332102bbf8fd30e Mon Sep 17 00:00:00 2001 From: Aaron LI Date: Sat, 21 Sep 2019 21:36:28 +0800 Subject: security: Use 'service' module instead of rcrestart/rcreload --- roles/security/handlers/main.yml | 8 ++++++-- 1 file 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 -- cgit v1.2.2