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>
This commit is contained in:
parent
20d99886ca
commit
1a0b81ac64
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue