fix: using a bridge to link podman pods to host s services

This commit is contained in:
Clément Désiles
2025-12-21 22:25:11 +01:00
parent b2a3ae6783
commit c197f28013
8 changed files with 102 additions and 67 deletions
@@ -0,0 +1,6 @@
# {{ ansible_managed }}
# systemd.netdev(5)
[NetDev]
Name={{ interface.name }}
Kind={{ interface.type }}
@@ -11,9 +11,14 @@ RouteMetric={{ interface.ipv4.metric }}
{% endif %}
[Network]
{% if interface.type is defined and interface.type == 'bridge' %}
ConfigureWithoutCarrier=yes
{% endif %}
{% if interface.ipv4.nameservers is defined %}
{% for dns in interface.ipv4.nameservers %}
DNS={{ dns }}
{% endfor %}
{% endif %}
{% if interface.ipv4.gateway is defined %}
[Route]