Skip to content

Commit

Permalink
Merge pull request #2 from axialmarket/anchor-option
Browse files Browse the repository at this point in the history
Add a role option to enable/disable the anchor file.
  • Loading branch information
jdauphant authored Nov 21, 2017
2 parents d91281f + 774c74e commit f1c247f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 2 additions & 0 deletions defaults/main.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
---
unbound_anchorfile: "/var/lib/unbound/root.key"
unbound_anchor_enabled: True
unbound_logfile: "/var/log/unbound.log"
unbound_configuration:
- verbosity: 1
Expand Down
4 changes: 3 additions & 1 deletion templates/01general.conf.j2
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,9 @@
{% for config in unbound_configuration %}
{{ config.keys().0 }}: {{ config.values().0 }}
{% endfor %}
auto-trust-anchor-file: "/var/lib/unbound/root.key"
{% if unbound_anchor_enabled %}
auto-trust-anchor-file: "{{unbound_anchorfile}}"
{% endif %}
{% for interface in unbound_interfaces %}
interface: {{interface}}
{% endfor %}
Expand Down

0 comments on commit f1c247f

Please sign in to comment.