From bdbd09ed8affb0a59849bc62bf5d30d0348e2856 Mon Sep 17 00:00:00 2001 From: Aaron LI Date: Sat, 21 Sep 2019 08:56:52 +0800 Subject: dns: Use "service" module instead of rcrestart/rcreload --- roles/dns/handlers/main.yml | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/roles/dns/handlers/main.yml b/roles/dns/handlers/main.yml index 196bbea..f9383c7 100644 --- a/roles/dns/handlers/main.yml +++ b/roles/dns/handlers/main.yml @@ -1,12 +1,20 @@ --- - name: restart-unbound - command: rcrestart unbound + service: + name: unbound + state: restarted - name: reload-unbound - command: rcreload unbound + service: + name: unbound + state: reloaded - name: restart-nsd - command: rcrestart nsd + service: + name: nsd + state: restarted - name: reload-nsd - command: rcreload nsd + service: + name: nsd + state: reloaded -- cgit v1.2.2