Matteo Scandolo | 3896c47 | 2017-08-01 13:31:42 -0700 | [diff] [blame] | 1 | |
| 2 | {# |
| 3 | Copyright 2017-present Open Networking Foundation |
| 4 | |
| 5 | Licensed under the Apache License, Version 2.0 (the "License"); |
| 6 | you may not use this file except in compliance with the License. |
| 7 | You may obtain a copy of the License at |
| 8 | |
| 9 | http://www.apache.org/licenses/LICENSE-2.0 |
| 10 | |
| 11 | Unless required by applicable law or agreed to in writing, software |
| 12 | distributed under the License is distributed on an "AS IS" BASIS, |
| 13 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 14 | See the License for the specific language governing permissions and |
| 15 | limitations under the License. |
| 16 | #} |
| 17 | |
| 18 | |
Zack Williams | ba5549c | 2017-03-25 15:04:45 -0700 | [diff] [blame] | 19 | # Dynamic resolv.conf(5) file for glibc resolver(3) generated by resolvconf(8) |
| 20 | # DO NOT EDIT THIS FILE BY HAND -- YOUR CHANGES WILL BE OVERWRITTEN |
| 21 | # Make changes to /etc/resolvconf/resolv.conf.d instead |
| 22 | # Modified by Ansible |
| 23 | {% if unbound_listen_on_default %} |
| 24 | {% for host in groups['head'] %} |
| 25 | nameserver {{ hostvars[host].ansible_default_ipv4.address }} |
| 26 | {% endfor %} |
| 27 | {% endif %} |
| 28 | {% if dns_servers is defined %} |
| 29 | {% for ns in dns_servers %} |
| 30 | nameserver {{ ns }} |
| 31 | {% endfor %} |
| 32 | {% endif %} |