[interfaces] Add supplementary lines from local facts
parent
4b5c16e683
commit
a6392502b9
|
@ -11,6 +11,15 @@ iface {{ ens_iface.stdout }} inet static
|
|||
dns-nameservers {{ ens_dns }}
|
||||
dns-search crans.org
|
||||
up /sbin/ip link set $IFACE alias ens
|
||||
{% if 'interfaces' in ansible_local %}
|
||||
{% if ens_iface.stdout in ansible_local.interfaces %}
|
||||
{% if 'sup_if_4' in ansible_local.interfaces[ens_iface.stdout] %}
|
||||
{% for line in ansible_local.interfaces[ens_iface.stdout].sup_if_4 %}
|
||||
{{ line }}
|
||||
{% endfor %}
|
||||
{% endif %}
|
||||
{% endif %}
|
||||
{% endif %}
|
||||
|
||||
iface {{ ens_iface.stdout }} inet6 static
|
||||
address {{ hostvars[inventory_hostname]['ansible_' + ens_iface.stdout].ipv6[0].address }}/{{ hostvars[inventory_hostname]['ansible_' + ens_iface.stdout].ipv6[0].prefix }}
|
||||
|
|
Loading…
Reference in New Issue