Skip to content

Commit

Permalink
fix: Restart network doesn't work on Fedora CoreOS (#7271)
Browse files Browse the repository at this point in the history
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 <[email protected]>
(cherry picked from commit bcaa31a)
  • Loading branch information
guni1192 authored and k8s-ci-robot committed Feb 22, 2021
1 parent 189ce38 commit 10b08d8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion roles/reset/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -321,7 +321,7 @@
service:
name: >-
{% if ansible_os_family == "RedHat" -%}
{%- if ansible_distribution_major_version|int == 8 -%}
{%- if ansible_distribution_major_version|int == 8 or is_fedora_coreos -%}
NetworkManager
{%- else -%}
network
Expand Down

0 comments on commit 10b08d8

Please sign in to comment.