blob: a57e9c5ae8f13d593245906eee0b5b8ab018e153 [file] [log] [blame]
Matteo Scandolo3896c472017-08-01 13:31:42 -07001
2# Copyright 2017-present Open Networking Foundation
3#
4# Licensed under the Apache License, Version 2.0 (the "License");
5# you may not use this file except in compliance with the License.
6# You may obtain a copy of the License at
7#
8# http://www.apache.org/licenses/LICENSE-2.0
9#
10# Unless required by applicable law or agreed to in writing, software
11# distributed under the License is distributed on an "AS IS" BASIS,
12# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13# See the License for the specific language governing permissions and
14# limitations under the License.
15
16
Zack Williams99adf6b2016-03-14 17:01:08 -070017---
18#file: roles/dns-unbound/tasks/main.yml
19
Zack Williams6f5a6e72016-08-10 17:45:27 -070020- name: Include OS specific vars
21 include_vars: "{{ ansible_os_family }}.yml"
Zack Williams99adf6b2016-03-14 17:01:08 -070022
23# Debian specific installation
24- include: unbound-Debian.yml
25 when: ansible_os_family == 'Debian'
26
27- name: create unbound.conf from template
28 template:
Zack Williamsbf43d752017-07-01 15:27:11 -070029 src: unbound.conf.j2
30 dest: "{{ unbound_conf }}"
31 mode: 0644
32 owner: root
33 group: "{{ unbound_group }}"
Zack Williams99adf6b2016-03-14 17:01:08 -070034 # validate='unbound-checkconf %s' - can't use, checks path, not just config.
35 notify:
36 - restart-unbound
37