From a40edb9fe355db60ee6c52a207ba7599e93cd975 Mon Sep 17 00:00:00 2001 From: Andrea Dell'Amico Date: Tue, 10 Oct 2023 11:53:06 +0200 Subject: [PATCH] netplan interface: dhcp override options. --- templates/70-ansible.yaml.j2 | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/templates/70-ansible.yaml.j2 b/templates/70-ansible.yaml.j2 index 6909e92..1e6c662 100644 --- a/templates/70-ansible.yaml.j2 +++ b/templates/70-ansible.yaml.j2 @@ -5,5 +5,10 @@ network: {{ int.name }}: dhcp4: {{ int.dhcp4 }} mtu: {{ int.mtu }} +{% if int.dhcp_overrides | default(true) %} + dhcp4-overrides: + use-dns: false + use-routes: false +{% endif %} {% endfor %}