Skip to content
Snippets Groups Projects
Unverified Commit 5d3326b9 authored by Kay Yan's avatar Kay Yan Committed by GitHub
Browse files

add-ping-package (#9284)

parent 68dac4e1
No related branches found
No related tags found
No related merge requests found
......@@ -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:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment