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
5d3326b9
Unverified
Commit
5d3326b9
authored
2 years ago
by
Kay Yan
Committed by
GitHub
2 years ago
Browse files
Options
Downloads
Patches
Plain Diff
add-ping-package (#9284)
parent
68dac4e1
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
roles/kubernetes/preinstall/tasks/0020-verify-settings.yml
+14
-0
14 additions, 0 deletions
roles/kubernetes/preinstall/tasks/0020-verify-settings.yml
with
14 additions
and
0 deletions
roles/kubernetes/preinstall/tasks/0020-verify-settings.yml
+
14
−
0
View file @
5d3326b9
...
...
@@ -100,6 +100,20 @@
-
not ignore_assert_errors
-
ip is defined
-
name
:
Ensure ping package
package
:
name
:
>-
{%- if ansible_os_family in ['RedHat', 'Suse'] -%}
iputils
{%- else -%}
iputils-ping
{%- endif -%}
state
:
present
when
:
-
access_ip is defined
-
not ignore_assert_errors
-
ping_access_ip
-
name
:
Stop if access_ip is not pingable
command
:
ping -c1 {{ access_ip }}
when
:
...
...
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