Update ipcheck.yaml
This commit is contained in:
@@ -1,7 +1,6 @@
|
|||||||
---
|
---
|
||||||
- hosts: localhost
|
- hosts: localhost
|
||||||
gather_facts: false
|
gather_facts: false
|
||||||
delegate_to: localhost
|
|
||||||
tasks:
|
tasks:
|
||||||
- name: Check IP address availability
|
- name: Check IP address availability
|
||||||
shell: ping -c 1 10.10.43.{{ item }}
|
shell: ping -c 1 10.10.43.{{ item }}
|
||||||
@@ -9,6 +8,7 @@
|
|||||||
failed_when: false
|
failed_when: false
|
||||||
changed_when: false
|
changed_when: false
|
||||||
with_sequence: start=2 end=253
|
with_sequence: start=2 end=253
|
||||||
|
delegate_to: localhost
|
||||||
|
|
||||||
- name: Print IP address status
|
- name: Print IP address status
|
||||||
failed_when: false
|
failed_when: false
|
||||||
@@ -19,3 +19,4 @@
|
|||||||
loop_control:
|
loop_control:
|
||||||
label: "{{ item.item }}"
|
label: "{{ item.item }}"
|
||||||
when: "'100.0% packet loss' in item.stdout"
|
when: "'100.0% packet loss' in item.stdout"
|
||||||
|
delegate_to: localhost
|
||||||
|
|||||||
Reference in New Issue
Block a user