blob: 19221486af945ed11b58bd97f5ac288a797ec604 [file] [log] [blame]
Matteo Scandolo3896c472017-08-01 13:31:42 -07001
2{#
3Copyright 2017-present Open Networking Foundation
4
5Licensed under the Apache License, Version 2.0 (the "License");
6you may not use this file except in compliance with the License.
7You may obtain a copy of the License at
8
9http://www.apache.org/licenses/LICENSE-2.0
10
11Unless required by applicable law or agreed to in writing, software
12distributed under the License is distributed on an "AS IS" BASIS,
13WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14See the License for the specific language governing permissions and
15limitations under the License.
16#}
17
18
Zack Williams22e89932016-03-15 11:08:06 -070019# resolv.conf (ansible managed)
Zack Williamsc59b6b22016-04-11 12:49:10 -070020{% if unbound_listen_on_default %}
21{% for host in groups['head'] %}
22nameserver {{ hostvars[host].ansible_default_ipv4.address }}
23{% endfor %}
24{% endif %}
25{% if dns_servers is defined %}
Zack Williams22e89932016-03-15 11:08:06 -070026{% for ns in dns_servers %}
27nameserver {{ ns }}
28{% endfor %}
Zack Williamsc59b6b22016-04-11 12:49:10 -070029{% endif %}
Zack Williams22e89932016-03-15 11:08:06 -070030{% if dns_search is defined %}
31search{% for searchdom in dns_search %} {{ searchdom }}{% endfor %}
32{% endif %}