Skip to content
Snippets Groups Projects
Commit 052519e8 authored by shirenn's avatar shirenn 🌊
Browse files

[unbound] wtf

parent 4fc73176
No related branches found
No related tags found
No related merge requests found
---
- name: Restart unbound
- name: systemctl restart unbound.service
systemd:
name: unbound
enabled: true
state: restart
state: restarted
listen: update root trust anchor
- name: run unbound-anchor
command: unbound-anchor
listen: update root trust anchor
......@@ -11,12 +11,9 @@
- name: Download the root file
get_url:
url: https://www.internic.net/domain/named.root
dest: /var/unbound/etc/root.hints
mode: "0444"
notify: Reload unbound
- name: Fetch the initial keys
command: unbound-anchor
dest: /etc/unbound/root.hints
mode: "0644"
notify: update root trust anchor
- name: Deploy the configuration
template:
......@@ -25,7 +22,7 @@
owner: root
group: root
mode: 0644
notify: Reload unbound
notify: systemctl restart unbound.service
- name: Enable and start unbound
systemd:
......
server:
verbosity: {{ unbound['verbosity'] | default(1) }}
verbosity: {{ unbound['verbosity'] | default(1) }}
{% for adr in unbound['interfaces'] %}
interface: {{ adr }}
interface: {{ adr }}
{% endfor %}
{% for ac in unbound['access-control'] %}
# {{ ac['name'] }}
# {{ ac['name'] }}
{% for addr in ac['addr'] %}
access-control: {{ addr }} {{ ac['policy'] }}
access-control: {{ addr }} {{ ac['policy'] }}
{% endfor %}
{% endfor %}
# chroot: "/etc/unbound"
# username: "unbound"
# directory: "/etc/unbound"
num-threads: 8
# reply on the same interface that the query came from
interface-automatic: yes
# the log file, "" means log to stderr.
# Use of this option sets use-syslog to "no".
# logfile: ""
# chroot: "/etc/unbound"
# username: "unbound"
# directory: "/etc/unbound"
use-syslog: yes
# the log file, "" means log to stderr.
# Use of this option sets use-syslog to "no".
# logfile: ""
# Log identity to report. if empty, defaults to the name of argv[0]
# (usually "unbound").
# log-identity: ""
use-syslog: yes
# print UTC timestamp in ascii to logfile, default is epoch in seconds.
# log-time-ascii: no
# Log identity to report. if empty, defaults to the name of argv[0]
# (usually "unbound").
# log-identity: ""
#log-queries: yes
#log-replies: yes
# print UTC timestamp in ascii to logfile, default is epoch in seconds.
# log-time-ascii: no
root-hints: "root.hints"
#log-queries: yes
#log-replies: yes
module-config: "validator iterator"
auto-trust-anchor-file: "/etc/unbound/root.key"
val-log-level: {{ unbound['val-log-level'] | default(2) }}
root-hints: "root.hints"
module-config: "validator iterator"
auto-trust-anchor-file: "/etc/unbound/root.key"
val-log-level: {{ unbound['val-log-level'] | default(2) }}
python:
# ...
# ...
dynlib:
# ...
# ...
# Remote control config section.
remote-control:
# ...
# ...
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment