Zack Williams | 709f11b | 2016-03-17 14:29:51 -0700 | [diff] [blame] | 1 | # The primary network interface |
| 2 | auto eth0 |
| 3 | iface eth0 inet dhcp |
Zack Williams | c59b6b2 | 2016-04-11 12:49:10 -0700 | [diff] [blame] | 4 | {% if unbound_listen_on_default %} |
| 5 | dns-nameservers{% for host in groups['head'] %} {{ hostvars[host].ansible_default_ipv4.address }}{% endfor %} |
Zack Williams | ba883e3 | 2016-04-11 16:06:43 -0700 | [diff] [blame] | 6 | {% endif %} |
Zack Williams | c59b6b2 | 2016-04-11 12:49:10 -0700 | [diff] [blame] | 7 | {% if dns_servers is defined %} |
Zack Williams | 709f11b | 2016-03-17 14:29:51 -0700 | [diff] [blame] | 8 | dns-nameservers{% for ns in dns_servers %} {{ ns }}{% endfor %} |
Zack Williams | c59b6b2 | 2016-04-11 12:49:10 -0700 | [diff] [blame] | 9 | {% endif %} |
Zack Williams | 709f11b | 2016-03-17 14:29:51 -0700 | [diff] [blame] | 10 | {% if dns_search is defined %} |
| 11 | dns-search{% for searchdom in dns_search %} {{ searchdom }}{% endfor %} |
| 12 | {% endif %} |