Zack Williams | 22e8993 | 2016-03-15 11:08:06 -0700 | [diff] [blame] | 1 | # resolv.conf (ansible managed) |
Zack Williams | c59b6b2 | 2016-04-11 12:49:10 -0700 | [diff] [blame] | 2 | {% if unbound_listen_on_default %} |
| 3 | {% for host in groups['head'] %} |
| 4 | nameserver {{ hostvars[host].ansible_default_ipv4.address }} |
| 5 | {% endfor %} |
| 6 | {% endif %} |
| 7 | {% if dns_servers is defined %} |
Zack Williams | 22e8993 | 2016-03-15 11:08:06 -0700 | [diff] [blame] | 8 | {% for ns in dns_servers %} |
| 9 | nameserver {{ ns }} |
| 10 | {% endfor %} |
Zack Williams | c59b6b2 | 2016-04-11 12:49:10 -0700 | [diff] [blame] | 11 | {% endif %} |
Zack Williams | 22e8993 | 2016-03-15 11:08:06 -0700 | [diff] [blame] | 12 | {% if dns_search is defined %} |
| 13 | search{% for searchdom in dns_search %} {{ searchdom }}{% endfor %} |
| 14 | {% endif %} |