From 6d2ab38477ecdbadebf677f3b14421baeccc8cc6 Mon Sep 17 00:00:00 2001 From: Christian Berendt Date: Sun, 18 Aug 2024 22:12:12 +0200 Subject: [PATCH] network: only use dummy-devices on ubuntu >= 24.04 (#696) dummy-devices only usable with netplan >= 0.107 Signed-off-by: Christian Berendt --- roles/network/templates/netplan/01-osism.yaml.j2 | 2 ++ 1 file changed, 2 insertions(+) diff --git a/roles/network/templates/netplan/01-osism.yaml.j2 b/roles/network/templates/netplan/01-osism.yaml.j2 index baaf6f1b..2571bbd2 100644 --- a/roles/network/templates/netplan/01-osism.yaml.j2 +++ b/roles/network/templates/netplan/01-osism.yaml.j2 @@ -11,8 +11,10 @@ network: bridges: {{ network_bridges|to_nice_yaml(indent=4)|indent(4) }} +{% if ansible_distribution == "Ubuntu" and ansible_distribution_version is version('24.04', '>=') %} dummy-devices: {{ network_dummy_devices|to_nice_yaml(indent=4)|indent(4) }} +{% endif %} ethernets: {{ network_ethernets|to_nice_yaml(indent=4)|indent(4) }}