From e42a01f2031998a2f58f5d50473931d92a4dd0d7 Mon Sep 17 00:00:00 2001
From: Andrey <82828197+u2216@users.noreply.github.com>
Date: Fri, 20 May 2022 09:34:53 +0300
Subject: [PATCH] Fixed systemd-networkd restart  for ubuntu 22.04, when using
 reset.yml (#8841)

* Fixed systemd-networkd restart  for ubuntu 22.04

* fixed systemd-networkd restart for all Ubuntu
---
 roles/reset/tasks/main.yml | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/roles/reset/tasks/main.yml b/roles/reset/tasks/main.yml
index e63492a72..f35b50407 100644
--- a/roles/reset/tasks/main.yml
+++ b/roles/reset/tasks/main.yml
@@ -381,7 +381,7 @@
       {%- else -%}
       network
       {%- endif -%}
-      {%- elif ansible_distribution == "Ubuntu" and ansible_distribution_release in ["hirsute","bionic", "focal"] -%}
+      {%- elif ansible_distribution == "Ubuntu" -%}
       systemd-networkd
       {%- elif ansible_os_family == "Debian" -%}
       networking
-- 
GitLab