If it is just to display at the end of play, you can also use 'set_stats' https://docs.ansible.com/ansible/latest/collections/ansible/builtin/set_stats_module.html And enable stat display in the default callback (others might/might not display them).
-- ---------- Brian Coca (he/him/they/them) -- You received this message because you are subscribed to the Google Groups "Ansible Project" group. To unsubscribe from this group and stop receiving emails from it, send an email to ansible-project+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/CACVha7ddmWMEyWKYfTPp8k9QOs%2B22WFRO8fPX%3DCDRZuGGmZbaQ%40mail.gmail.com.