diff --git a/ipcheck.yaml b/ipcheck.yaml index 2b76b71..0c561dd 100644 --- a/ipcheck.yaml +++ b/ipcheck.yaml @@ -8,8 +8,6 @@ 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 @@ -19,6 +17,4 @@ with_items: "{{ ping_result.results }}" loop_control: label: "{{ item.item }}" - when: - - "'100.0% packet loss' in item.stdout" - - inventory_hostname == groups['node'][0] + when: "'100.0% packet loss' in item.stdout"