nsd/handlers/main.yml

19 lines
501 B
YAML
Raw Normal View History

---
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.
- name: rebuild nsd database
command: "{{ nsd_control_program }} rebuild"
when: nsd_version == 'nsd3'
- name: reload nsd database
command: "{{ nsd_control_program }} reload"
- name: restart nsd
service: name={{ nsd_service_name }} state=restarted
- name: notify slaves
command: "{{ nsd_control_program }} notify"