fix: Restart network doesn't work on Fedora CoreOS (#7271)

Running remove-node.yml tasks for clean up cluster on Fedora CoreOS.
The task failed to restart network daemon (task name: "reset | Restart network").
Fedora CoreOS is essentially using NetworkManager, but this task returns network.

Signed-off-by: Takashi IIGUNI <iiguni.tks@gmail.com>
(cherry picked from commit bcaa31ae33)
This commit is contained in:
Takashi IIGUNI 2021-02-09 23:35:04 +09:00 committed by Kubernetes Prow Robot
parent 189ce380bd
commit 10b08d8840

View file

@ -321,7 +321,7 @@
service: service:
name: >- name: >-
{% if ansible_os_family == "RedHat" -%} {% if ansible_os_family == "RedHat" -%}
{%- if ansible_distribution_major_version|int == 8 -%} {%- if ansible_distribution_major_version|int == 8 or is_fedora_coreos -%}
NetworkManager NetworkManager
{%- else -%} {%- else -%}
network network