Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Ansible
Manage
Activity
Members
Labels
Plan
Issues
3
Issue boards
Milestones
Code
Merge requests
2
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Nounous
Ansible
Commits
052519e8
Commit
052519e8
authored
2 years ago
by
shirenn
🌊
Browse files
Options
Downloads
Patches
Plain Diff
[unbound] wtf
parent
4fc73176
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
roles/unbound/handlers/main.yml
+7
-2
7 additions, 2 deletions
roles/unbound/handlers/main.yml
roles/unbound/tasks/main.yml
+4
-7
4 additions, 7 deletions
roles/unbound/tasks/main.yml
roles/unbound/templates/unbound.conf.j2
+28
-27
28 additions, 27 deletions
roles/unbound/templates/unbound.conf.j2
with
39 additions
and
36 deletions
roles/unbound/handlers/main.yml
+
7
−
2
View file @
052519e8
---
-
name
:
R
estart unbound
-
name
:
systemctl r
estart 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
This diff is collapsed.
Click to expand it.
roles/unbound/tasks/main.yml
+
4
−
7
View file @
052519e8
...
...
@@ -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
:
...
...
This diff is collapsed.
Click to expand it.
roles/unbound/templates/unbound.conf.j2
+
28
−
27
View file @
052519e8
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.
#
U
se
of this option sets use-syslog to "no".
# logfile: "
"
# chroot: "/etc/unbound"
#
u
se
rname: "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:
# ...
# ...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment