From 3852cb3b255515fbc9b524a4ca77f7245d91514c Mon Sep 17 00:00:00 2001 From: ByeonJungHun <131643404+ByeonJungHun@users.noreply.github.com> Date: Thu, 29 Jun 2023 16:26:06 +0900 Subject: [PATCH] Update ipcheck.yaml --- ipcheck.yaml | 19 +++++++------------ 1 file changed, 7 insertions(+), 12 deletions(-) diff --git a/ipcheck.yaml b/ipcheck.yaml index 8ff8b08..cc63145 100644 --- a/ipcheck.yaml +++ b/ipcheck.yaml @@ -10,18 +10,13 @@ changed_when: false with_sequence: start=100 end=150 -# - name: test -# failed_when: false -# changed_when: false -# debug: -# msg: "현재 응답이 없음으로 10.10.43.{{ item.item }} 해당 IP는 사용할 수 있는 IP 입니다" -# with_items: "{{ ping_result.results }}" -# loop_control: -# label: "{{ item.item }}" -# when: "'100% packet loss' in item.stdout" - - name: test - fail: + failed_when: false + changed_when: false + debug: msg: "현재 응답이 없음으로 10.10.43.{{ item.item }} 해당 IP는 사용할 수 있는 IP 입니다" - when: "'100% packet loss' in item.stdout" + with_items: "{{ ping_result.results }}" + loop_control: + label: "{{ item.item }}" + when: "'100% packet loss' in item.stdout"