dns-witch-zones/config/roles/knot/tasks/main.yml

28 lines
423 B
YAML
Raw Normal View History

2021-06-04 13:23:13 +00:00
---
- name: Install knot
apt:
pkg:
- knot
- knot-dnsutils
- name: Update zones
ansible.builtin.copy:
src: '{{ zones_dir }}'
dest: /var/lib/knot/zones
owner: knot
group: knot
mode: '0644'
notify: reload knot
- name:
template:
src: knot.conf.j2
dest: /etc/knot/knot.conf
notify: reload knot
- name: Start knot
service:
name: knot
state: started
enabled: yes