@@ -5,3 +5,8 @@ | |||||
name: knot | name: knot | ||||
state: reloaded | state: reloaded | ||||
listen: reload nameserver | listen: reload nameserver | ||||
- name: restart knot | |||||
service: | |||||
name: knot | |||||
state: restarted |
@@ -5,3 +5,12 @@ | |||||
src: knot.conf.j2 | src: knot.conf.j2 | ||||
dest: /etc/knot/knot.conf | dest: /etc/knot/knot.conf | ||||
notify: reload knot | notify: reload knot | ||||
- name: working directory | |||||
file: | |||||
path: /var/lib/knot | |||||
state: directory | |||||
owner: knot | |||||
group: knot | |||||
recurse: yes | |||||
notify: restart knot |
@@ -1,6 +1,12 @@ | |||||
server: | server: | ||||
{% if not nameserver_ips is defined%} | |||||
listen: 0.0.0.0@53 | listen: 0.0.0.0@53 | ||||
listen: ::@53 | listen: ::@53 | ||||
{% else %} | |||||
{% for ip in nameserver_ips %} | |||||
listen: {{ip|ipaddr('address')}}@53 | |||||
{% endfor %} | |||||
{% endif %} | |||||
user: knot:knot | user: knot:knot | ||||
log: | log: | ||||