Restart NSD when zone configuration has changed

This is necessary when a zone is added or removed: simply reloading NSD is
apparently not enough for it to take notice.
This commit is contained in:
Baptiste Jonglez 2017-09-01 21:42:24 +02:00
parent f607fff0f8
commit 6d1d0ae4a8

View File

@ -16,6 +16,7 @@
notify:
- rebuild nsd database
- reload nsd database
- restart nsd
- name: Create base nsd configuration file
template: src=config.j2 dest="{{ nsd_config_dir }}/nsd.conf" owner=root group=root mode=0644 validate='nsd-checkconf %s'