2016-03-26 17:54:31 +01:00
|
|
|
---
|
|
|
|
|
2016-03-27 15:55:39 +02:00
|
|
|
# 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.
|
|
|
|
|
2017-09-01 10:55:03 +02:00
|
|
|
- name: rebuild nsd database
|
|
|
|
command: "{{ nsd_control_program }} rebuild"
|
2017-09-01 12:35:44 +02:00
|
|
|
when: nsd_version == 3
|
2016-03-26 19:36:03 +01:00
|
|
|
|
2017-09-01 10:55:03 +02:00
|
|
|
- name: reload nsd database
|
|
|
|
command: "{{ nsd_control_program }} reload"
|
2016-03-27 17:57:36 +02:00
|
|
|
|
2017-09-01 10:55:03 +02:00
|
|
|
- name: restart nsd
|
|
|
|
service: name={{ nsd_service_name }} state=restarted
|
2016-03-26 20:05:53 +01:00
|
|
|
|
2016-03-26 19:36:03 +01:00
|
|
|
- name: notify slaves
|
2017-09-01 10:55:03 +02:00
|
|
|
command: "{{ nsd_control_program }} notify"
|