From 806779335db8ae9c1587395d493343fd83792a77 Mon Sep 17 00:00:00 2001 From: Pablo Escobar Date: Wed, 15 Mar 2023 12:56:26 +0100 Subject: [PATCH] Don't sort config. Respect the original order defined in var netplan_conf --- templates/etc/netplan/config.yaml.j2 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/etc/netplan/config.yaml.j2 b/templates/etc/netplan/config.yaml.j2 index d864597..1d18d97 100644 --- a/templates/etc/netplan/config.yaml.j2 +++ b/templates/etc/netplan/config.yaml.j2 @@ -1,3 +1,3 @@ {{ ansible_managed | comment }} --- -{{ netplan_conf | from_yaml | to_nice_yaml(indent=2) }} +{{ netplan_conf | from_yaml | to_nice_yaml(indent=2,sort_keys=False) }}