use vars instead of msg
This commit is contained in:
parent
7f077613d7
commit
f9af39174a
10
ping.yml
10
ping.yml
@ -20,12 +20,6 @@
|
||||
- name: Clear host errors
|
||||
ansible.builtin.meta: clear_host_errors
|
||||
|
||||
# - name: Ping check results
|
||||
# ansible.builtin.debug:
|
||||
# msg: "{{ lookup('template', 'ping_results.j2') | from_yaml }}"
|
||||
# run_once: true # noqa: run-once[task]
|
||||
# delegate_to: localhost
|
||||
|
||||
- name: Set facts
|
||||
ansible.builtin.set_fact:
|
||||
successful_hosts: "{{ successful_hosts | default([]) + ansible_play_batch }}"
|
||||
@ -35,13 +29,13 @@
|
||||
|
||||
- name: Successful Hosts
|
||||
ansible.builtin.debug:
|
||||
msg: "{{ successful_hosts }}"
|
||||
var: successful_hosts
|
||||
run_once: true # noqa: run-once[task]
|
||||
delegate_to: localhost
|
||||
|
||||
- name: Failed Hosts
|
||||
ansible.builtin.debug:
|
||||
msg: "{{ failed_hosts }}"
|
||||
var: failed_hosts
|
||||
run_once: true # noqa: run-once[task]
|
||||
delegate_to: localhost
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user