Skip to content

Commit

Permalink
network: only use dummy-devices on ubuntu >= 24.04 (#696)
Browse files Browse the repository at this point in the history
dummy-devices only usable with netplan >= 0.107

Signed-off-by: Christian Berendt <berendt@osism.tech>
  • Loading branch information
berendt authored Aug 18, 2024
1 parent 2dadd7c commit 6d2ab38
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions roles/network/templates/netplan/01-osism.yaml.j2
Original file line number Diff line number Diff line change
Expand Up @@ -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) }}
Expand Down

0 comments on commit 6d2ab38

Please sign in to comment.