From f24bd4333cf12e26d3acaf440f84a6a9f6eff4cc Mon Sep 17 00:00:00 2001 From: ace Date: Wed, 27 Oct 2021 14:38:22 +0300 Subject: [PATCH] fix route compare --- tasks/RedHat/network_manager.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tasks/RedHat/network_manager.yaml b/tasks/RedHat/network_manager.yaml index 38a01bf..b3bf5b1 100644 --- a/tasks/RedHat/network_manager.yaml +++ b/tasks/RedHat/network_manager.yaml @@ -49,9 +49,9 @@ gw6: "{{ iface.gw6 | default(omit) }}" never_default4: "{{ iface.never_default4 | default('yes') }}" vlanid: "{{ iface.vlanid | default(omit) }}" - routes4: "{{ omit if existing_routes4 != new_routes4 else iface.routes4 }}" + routes4: "{{ omit if existing_routes4 == new_routes4 else iface.routes4 }}" routing_rules4: "{{ iface.routing_rules4 | default(omit) }}" - routes6: "{{ omit if existing_routes6 != new_routes6 else iface.routes6 }}" + routes6: "{{ omit if existing_routes6 == new_routes6 else iface.routes6 }}" routing_rules6: "{{ iface.routing_rules6 | default(omit) }}" mtu: "{{ iface.mtu | default(0) }}" zone: "{{ iface.zone | default(omit) }}"