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
Branches
No related tags found
1 merge request!3add possibilty for wildcard interface name
Pipeline #3691 passed
This commit is part of merge request !3. Comments created here will be created in the context of that merge request.
{% 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)]),
'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