Skip to content
Snippets Groups Projects
Unverified Commit 1a0b81ac authored by Douglas Landgraf's avatar Douglas Landgraf Committed by GitHub
Browse files

reset: RedHat based distro with major version >=8 (#9537)


During the reset, restart network was not completing in distros
like RHEL/CentOS/AlmaLinux with major version higher than 8.

Example:
kubespray> ansible-playbook -i inventory/mydomain/hosts.yml reset.yml -b -v
fatal: [mynode]: FAILED! => {"changed": false, "msg": "Could not find the requested service network: host"}

Signed-off-by: default avatarDouglas Schilling Landgraf <dlandgra@redhat.com>

Signed-off-by: default avatarDouglas Schilling Landgraf <dlandgra@redhat.com>
parent 20d99886
No related branches found
No related tags found
No related merge requests found
......@@ -390,7 +390,7 @@
service:
name: >-
{% if ansible_os_family == "RedHat" -%}
{%- if ansible_distribution_major_version|int == 8 or is_fedora_coreos or ansible_distribution == "Fedora" -%}
{%- if ansible_distribution_major_version|int >= 8 or is_fedora_coreos or ansible_distribution == "Fedora" -%}
NetworkManager
{%- else -%}
network
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment