Update ipcheck.yaml

This commit is contained in:
ByeonJungHun
2023-06-28 16:37:35 +09:00
committed by GitHub
parent 9c8b3decb8
commit 0749798ab7

View File

@@ -1,7 +1,6 @@
---
- hosts: localhost
gather_facts: false
delegate_to: localhost
tasks:
- name: Check IP address availability
shell: ping -c 1 10.10.43.{{ item }}
@@ -9,6 +8,7 @@
failed_when: false
changed_when: false
with_sequence: start=2 end=253
delegate_to: localhost
- name: Print IP address status
failed_when: false
@@ -19,3 +19,4 @@
loop_control:
label: "{{ item.item }}"
when: "'100.0% packet loss' in item.stdout"
delegate_to: localhost