blob: 2cf2f33018794cfb3dd41f04e47077a3124da615 [file] [log] [blame]
Zack Williams709f11b2016-03-17 14:29:51 -07001# The primary network interface
2auto eth0
3iface eth0 inet dhcp
Zack Williamsc59b6b22016-04-11 12:49:10 -07004{% if unbound_listen_on_default %}
5 dns-nameservers{% for host in groups['head'] %} {{ hostvars[host].ansible_default_ipv4.address }}{% endfor %}
6{% if dns_servers is defined %}
Zack Williams709f11b2016-03-17 14:29:51 -07007 dns-nameservers{% for ns in dns_servers %} {{ ns }}{% endfor %}
Zack Williamsc59b6b22016-04-11 12:49:10 -07008{% endif %}
Zack Williams709f11b2016-03-17 14:29:51 -07009{% if dns_search is defined %}
10 dns-search{% for searchdom in dns_search %} {{ searchdom }}{% endfor %}
11{% endif %}