mirror of
https://github.com/kubernetes-sigs/kubespray.git
synced 2026-02-28 09:39:12 +03:00
Fix using the default network manager in reset.yml (#11678)
* enhance reset network service Signed-off-by: KubeKyrie <shaolong.qin@daocloud.io> * reset network service: use systemd module directly --------- Signed-off-by: KubeKyrie <shaolong.qin@daocloud.io> Co-authored-by: Max Gautier <mg@max.gautier.name>
This commit is contained in:
@@ -2,21 +2,5 @@
|
||||
flush_iptables: true
|
||||
reset_restart_network: true
|
||||
|
||||
reset_restart_network_service_name: >-
|
||||
{% if ansible_os_family == "RedHat" -%}
|
||||
{%-
|
||||
if ansible_distribution_major_version | int >= 8
|
||||
or is_fedora_coreos or ansible_distribution in ["Fedora", "Kylin Linux Advanced Server", "TencentOS"] -%}
|
||||
NetworkManager
|
||||
{%- else -%}
|
||||
network
|
||||
{%- endif -%}
|
||||
{%- elif ansible_distribution == "Ubuntu"
|
||||
or (ansible_distribution == "Debian" and ansible_distribution_major_version | int == 12 ) -%}
|
||||
systemd-networkd
|
||||
{%- elif ansible_os_family == "Debian" -%}
|
||||
networking
|
||||
{%- endif %}
|
||||
|
||||
# crictl stop container grace period
|
||||
cri_stop_containers_grace_period: 0
|
||||
|
||||
Reference in New Issue
Block a user