Andy Bavier | a17d84b | 2016-11-16 09:39:26 -0800 | [diff] [blame] | 1 | # The primary network interface |
| 2 | auto eth0 |
| 3 | iface eth0 inet dhcp |
| 4 | {% if unbound_listen_on_default %} |
| 5 | dns-nameservers{% for host in groups['head'] %} {{ hostvars[host].ansible_default_ipv4.address }}{% endfor %} |
| 6 | {% endif %} |
| 7 | {% if dns_servers is defined %} |
| 8 | dns-nameservers{% for ns in dns_servers %} {{ ns }}{% endfor %} |
| 9 | {% endif %} |
| 10 | {% if dns_search is defined %} |
| 11 | dns-search{% for searchdom in dns_search %} {{ searchdom }}{% endfor %} |
| 12 | {% endif %} |