From 2785425d7355c729209b76007ecd0a3e9b450769 Mon Sep 17 00:00:00 2001 From: Chris Hammer Date: Wed, 27 Mar 2024 12:43:43 -0400 Subject: [PATCH] tidy up --- ping.yml | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/ping.yml b/ping.yml index 82a5ccc..7c8c95f 100644 --- a/ping.yml +++ b/ping.yml @@ -4,7 +4,6 @@ become: false gather_facts: false - tasks: - name: Ping target hosts ansible.builtin.ping: @@ -13,16 +12,15 @@ failed_when: false - name: "Ping Check: Successful Hosts" - debug: + ansible.builtin.debug: var: ansible_play_batch - run_once: true + run_once: true # noqa: run-once[task] delegate_to: localhost - name: "Ping Check: Failed Hosts" - debug: + ansible.builtin.debug: msg: "{{ ansible_play_hosts_all | difference(ansible_play_batch) }}" run_once: true # noqa: run-once[task] delegate_to: localhost - ...