From c2710899ed8ca0a6bb68a2789701765360aa6ba0 Mon Sep 17 00:00:00 2001 From: RuriRyan Date: Fri, 9 Nov 2018 17:13:57 +0100 Subject: [PATCH] Fixes network restart for Ubuntu Bionic Beaver (#3600) As Ubuntu Bionic Beaver uses systemd-networkd the step fails if it tries to restart networking, as it is nonexistent. --- roles/kubernetes/preinstall/handlers/main.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/roles/kubernetes/preinstall/handlers/main.yml b/roles/kubernetes/preinstall/handlers/main.yml index 3c4fd17d6..d1649241b 100644 --- a/roles/kubernetes/preinstall/handlers/main.yml +++ b/roles/kubernetes/preinstall/handlers/main.yml @@ -16,6 +16,8 @@ name: >- {% if ansible_os_family == "RedHat" -%} network + {%- elif ansible_distribution == "Ubuntu" and ansible_distribution_release == "bionic" -%} + systemd-networkd {%- elif ansible_os_family == "Debian" -%} networking {%- endif %}