forked from kubernetes-sigs/kubespray
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add a way to configure reseted networking service name. (kubernetes-s…
- Loading branch information
1 parent
8826c22
commit 7e485ed
Showing
2 changed files
with
16 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,18 @@ | ||
--- | ||
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 == "Fedora" -%} | ||
NetworkManager | ||
{%- else -%} | ||
network | ||
{%- endif -%} | ||
{%- elif ansible_distribution == "Ubuntu" -%} | ||
systemd-networkd | ||
{%- elif ansible_os_family == "Debian" -%} | ||
networking | ||
{%- endif %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters