nsd/handlers/main.yml
Baptiste Jonglez 6538ccda29 NSD: Reload database after having rebuilt it
Also don't restart nsd when changing zone configuration, rebuild + reload
is enough.
2017-09-01 10:20:48 +02:00

18 lines
417 B
YAML

---
# Note: the order is very important here. When a zone is added or removed,
# nsd MUST rebuild its database before being restarted. Otherwise, it will
# fail to start.
- name: rebuild nsd3 database
command: /usr/sbin/nsdc rebuild
- name: reload nsd3 database
command: /usr/sbin/nsdc reload
- name: restart nsd3
service: name=nsd3 state=restarted
- name: notify slaves
command: /usr/sbin/nsdc notify