28 lines
423 B
YAML
28 lines
423 B
YAML
|
---
|
||
|
- 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
|