diff --git a/ipcheck.yaml b/ipcheck.yaml index 07fdeae..82b50ba 100644 --- a/ipcheck.yaml +++ b/ipcheck.yaml @@ -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