Skip to content
Snippets Groups Projects
Commit 228478b8 authored by Hinrikus Wolf's avatar Hinrikus Wolf
Browse files

add default interface for easy case

parent e7dd6ebf
No related branches found
No related tags found
1 merge request!3add possibilty for wildcard interface name
Pipeline #3691 passed
{% set network = { {% set network = {
'interface': item.1.interface|default(ansible_default_ipv4.interface), 'interface': item.1.interface|default(networkd_interface|default(ansible_default_ipv4.interface)),
'addresses': item.1.addresses|default([item.1.adress|default(networkd_address)]), 'addresses': item.1.addresses|default([item.1.adress|default(networkd_address)]),
'gateway': item.1.gateway|default(networkd_gateway), 'gateway': item.1.gateway|default(networkd_gateway),
} %} } %}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment