This website works better with JavaScript.
Home
Explore
Help
Register
Sign In
ka
/
ansible-role-knot
Watch
1
Star
0
Fork
0
Code
Issues
0
Pull Requests
0
Releases
0
Wiki
Activity
Browse Source
some fixes
master
Markus Katharina Brechtel
7 years ago
parent
16daf05eae
commit
76e159fca5
3 changed files
with
20 additions
and
0 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+5
-0
handlers/main.yml
+9
-0
tasks/configure.yml
+6
-0
templates/knot.conf.j2
+ 5
- 0
handlers/main.yml
View File
@@ -5,3 +5,8 @@
name: knot
state: reloaded
listen: reload nameserver
- name: restart knot
service:
name: knot
state: restarted
+ 9
- 0
tasks/configure.yml
View File
@@ -5,3 +5,12 @@
src: knot.conf.j2
dest: /etc/knot/knot.conf
notify: reload knot
- name: working directory
file:
path: /var/lib/knot
state: directory
owner: knot
group: knot
recurse: yes
notify: restart knot
+ 6
- 0
templates/knot.conf.j2
View File
@@ -1,6 +1,12 @@
server:
{% if not nameserver_ips is defined%}
listen: 0.0.0.0@53
listen: ::@53
{% else %}
{% for ip in nameserver_ips %}
listen: {{ip|ipaddr('address')}}@53
{% endfor %}
{% endif %}
user: knot:knot
log:
Write
Preview
Loading…
Cancel
Save