Merge branch 'interfaces' into 'newinfra'

[interfaces] Search crans.org on srv

See merge request nounous/ansible!75
certbot_on_virtu
_benjamin 2020-08-23 20:31:16 +02:00
commit bd7502e86c
1 changed files with 4 additions and 0 deletions

View File

@ -21,7 +21,11 @@ iface {{ interfaces[item.name] }} inet static
{% if item.dns is defined %}
dns-nameservers {{ item.dns }}
{% endif %}
{% if vlan_name == 'srv' %}
dns-search crans.org
{% else %}
dns-search {{ vlan_name }}.crans.org
{% endif %}
up /sbin/ip link set $IFACE alias {{ vlan_name }}
{% if ansible_local.interfaces.sup_if_4 is defined %}
{% if interfaces[item.name] in ansible_local.interfaces.sup_if_4 %}