This commit is contained in:
Chris Hammer 2024-03-27 12:43:43 -04:00
parent a027e8ed61
commit 2785425d73

View File

@ -4,7 +4,6 @@
become: false become: false
gather_facts: false gather_facts: false
tasks: tasks:
- name: Ping target hosts - name: Ping target hosts
ansible.builtin.ping: ansible.builtin.ping:
@ -13,16 +12,15 @@
failed_when: false failed_when: false
- name: "Ping Check: Successful Hosts" - name: "Ping Check: Successful Hosts"
debug: ansible.builtin.debug:
var: ansible_play_batch var: ansible_play_batch
run_once: true run_once: true # noqa: run-once[task]
delegate_to: localhost delegate_to: localhost
- name: "Ping Check: Failed Hosts" - name: "Ping Check: Failed Hosts"
debug: ansible.builtin.debug:
msg: "{{ ansible_play_hosts_all | difference(ansible_play_batch) }}" msg: "{{ ansible_play_hosts_all | difference(ansible_play_batch) }}"
run_once: true # noqa: run-once[task] run_once: true # noqa: run-once[task]
delegate_to: localhost delegate_to: localhost
... ...