Skip to content
Snippets Groups Projects
Verified Commit b4ca1e5e authored by Thomas Schneider's avatar Thomas Schneider
Browse files

Initial import

parents
No related branches found
No related tags found
No related merge requests found
- name: restart unbound
systemd: name=unbound.service state=restarted
- name: Install unbound packages
apt: name=unbound state=present
tags:
- packages
- unbound
- name: Install unbound config
template: src=unbound.conf.j2 dest=/etc/unbound/unbound.conf.d/unbound.conf
tags:
- config
- unbound
notify:
- restart unbound
- name: Ensure unbound-control keys are present
command: /usr/sbin/unbound-control-setup
args:
creates: /etc/unbound/unbound_control.key
tags:
- unbound
- name: Enable unbound service
service: name=unbound state=started enabled=yes
tags:
- service
- unbound
server:
interface: 0.0.0.0
interface: ::
prefetch: yes
forward-zone:
name: "."
{% for i in nameservers %}
forward-addr: {{i}}
{% endfor %}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment