2017-04-18 22:15:22 +08:00
|
|
|
---
|
|
|
|
flush_iptables: true
|
2018-02-06 08:38:05 +08:00
|
|
|
reset_restart_network: true
|
2023-09-20 17:28:01 +08:00
|
|
|
|
|
|
|
reset_restart_network_service_name: >-
|
|
|
|
{% if ansible_os_family == "RedHat" -%}
|
|
|
|
{%-
|
|
|
|
if ansible_distribution_major_version | int >= 8
|
2024-08-26 22:32:08 +08:00
|
|
|
or is_fedora_coreos or ansible_distribution in ["Fedora", "Kylin Linux Advanced Server", "TencentOS"] -%}
|
2023-09-20 17:28:01 +08:00
|
|
|
NetworkManager
|
|
|
|
{%- else -%}
|
|
|
|
network
|
|
|
|
{%- endif -%}
|
2024-04-09 21:50:39 +08:00
|
|
|
{%- elif ansible_distribution == "Ubuntu"
|
|
|
|
or (ansible_distribution == "Debian" and ansible_distribution_major_version | int == 12 ) -%}
|
2023-09-20 17:28:01 +08:00
|
|
|
systemd-networkd
|
|
|
|
{%- elif ansible_os_family == "Debian" -%}
|
|
|
|
networking
|
|
|
|
{%- endif %}
|
2024-01-23 00:11:08 +08:00
|
|
|
|
|
|
|
# crictl stop container grace period
|
|
|
|
cri_stop_containers_grace_period: 0
|