NSD: Reload database after having rebuilt it

Also don't restart nsd when changing zone configuration, rebuild + reload
is enough.
This commit is contained in:
Baptiste Jonglez 2016-03-27 17:57:36 +02:00
parent eef721d276
commit 6538ccda29
2 changed files with 5 additions and 1 deletions

View File

@ -7,6 +7,9 @@
- name: rebuild nsd3 database - name: rebuild nsd3 database
command: /usr/sbin/nsdc rebuild command: /usr/sbin/nsdc rebuild
- name: reload nsd3 database
command: /usr/sbin/nsdc reload
- name: restart nsd3 - name: restart nsd3
service: name=nsd3 state=restarted service: name=nsd3 state=restarted

View File

@ -20,7 +20,7 @@
template: src=zones_config.j2 dest={{ zones_config_file }} owner=root group=root mode=0644 template: src=zones_config.j2 dest={{ zones_config_file }} owner=root group=root mode=0644
notify: notify:
- rebuild nsd3 database - rebuild nsd3 database
- restart nsd3 - reload nsd3 database
- name: Copy content of primary nsd3 zones - name: Copy content of primary nsd3 zones
@ -28,4 +28,5 @@
with_items: "{{ nsd_primary_zones }}" with_items: "{{ nsd_primary_zones }}"
notify: notify:
- rebuild nsd3 database - rebuild nsd3 database
- reload nsd3 database
- notify slaves - notify slaves