From 91b2b1fd2015d3ce04e0bba9dfe7fa6ef3f6ca45 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EB=B3=80=EC=A0=95=ED=9B=88?= Date: Wed, 28 Jun 2023 16:24:47 +0900 Subject: [PATCH] ip list update --- ipcheck.yaml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/ipcheck.yaml b/ipcheck.yaml index 0c561dd..2b76b71 100644 --- a/ipcheck.yaml +++ b/ipcheck.yaml @@ -8,6 +8,8 @@ failed_when: false changed_when: false with_sequence: start=2 end=253 + when: + - inventory_hostname == groups['node'][0] - name: Print IP address status failed_when: false @@ -17,4 +19,6 @@ with_items: "{{ ping_result.results }}" loop_control: label: "{{ item.item }}" - when: "'100.0% packet loss' in item.stdout" + when: + - "'100.0% packet loss' in item.stdout" + - inventory_hostname == groups['node'][0]