From 0749798ab7fdbc77e29ca32e8df16ad8c7c5f798 Mon Sep 17 00:00:00 2001 From: ByeonJungHun <131643404+ByeonJungHun@users.noreply.github.com> Date: Wed, 28 Jun 2023 16:37:35 +0900 Subject: [PATCH] Update ipcheck.yaml --- ipcheck.yaml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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