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: Douglas Schilling Landgraf <dlandgra@redhat.com> Signed-off-by: Douglas Schilling Landgraf <dlandgra@redhat.com>pull/9543/head
parent
20d99886ca
commit
1a0b81ac64
|
@ -390,7 +390,7 @@
|
||||||
service:
|
service:
|
||||||
name: >-
|
name: >-
|
||||||
{% if ansible_os_family == "RedHat" -%}
|
{% 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
|
NetworkManager
|
||||||
{%- else -%}
|
{%- else -%}
|
||||||
network
|
network
|
||||||
|
|
Loading…
Reference in New Issue