nsd/handlers/main.yml

22 lines
525 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"
2017-09-01 12:35:44 +02:00
when: nsd_version == 3
- name: reload nsd database
command: "{{ nsd_control_program }} reload"
- name: restart nsd
2021-01-04 22:34:08 +01:00
systemd:
name: "{{ nsd_service_name }}"
enabled: yes
state: restarted
- name: notify slaves
command: "{{ nsd_control_program }} notify"