Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
K
Kubespray
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Model registry
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Mirror
Kubespray
Commits
a81c6d54
Unverified
Commit
a81c6d54
authored
1 year ago
by
Romain
Committed by
GitHub
1 year ago
Browse files
Options
Downloads
Patches
Plain Diff
Add a way to configure reseted networking service name. (#10428)
parent
6b34e3ef
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
roles/reset/defaults/main.yml
+15
-0
15 additions, 0 deletions
roles/reset/defaults/main.yml
roles/reset/tasks/main.yml
+1
-13
1 addition, 13 deletions
roles/reset/tasks/main.yml
with
16 additions
and
13 deletions
roles/reset/defaults/main.yml
+
15
−
0
View file @
a81c6d54
---
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 diff is collapsed.
Click to expand it.
roles/reset/tasks/main.yml
+
1
−
13
View file @
a81c6d54
...
...
@@ -429,19 +429,7 @@
-
name
:
Reset | Restart network
service
:
# noqa: jinja[spacing]
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 %}
name
:
"
{{
reset_restart_network_service_name
}}"
state
:
restarted
when
:
-
ansible_os_family not in ["Flatcar", "Flatcar Container Linux by Kinvolk"]
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment