aboutsummaryrefslogtreecommitdiffstats
path: root/roles
diff options
context:
space:
mode:
Diffstat (limited to 'roles')
-rw-r--r--roles/dns/handlers/main.yml16
1 files 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