# Ending summary of a playbook

**URL:** <https://forum.ansible.com/t/ending-summary-of-a-playbook/28776>\
**Category:** Ansible Project\
**Created:** [October 12, 2018, 3:02pm UTC](https://forum.ansible.com/t/ending-summary-of-a-playbook/28776 "2018-10-12T15:02:51Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Chris\_Bidwell](https://avatars.discourse-cdn.com/v4/letter/c/da6949/32.png) [@Chris\_Bidwell](https://forum.ansible.com/u/Chris_Bidwell)\
**Post date:** [October 12, 2018, 3:02pm UTC](https://forum.ansible.com/t/ending-summary-of-a-playbook/28776/1 "2018-10-12T15:02:51Z")

</div>

Hey all,

Is there any way to write out where I would get a summary of a playbook, other than what is already given with the passes, fails, changed, etc. Let’s say I write a playbook listing all servers/workstations that need to be rebooted after a kernel patch.

Is there a way to do this? I’ve got a playbook already in place that where it says:

- debug:  
msg: “{{ inventory\_hostname}} {{ reboot\_required.stdout }}”  
when: reboot\_required.stdout == “reboot”  
tags: reboot

That goes as the playbook runs. I’d like to get a listing of all that match this at the end. Any ideas?

Thanks!

Chris

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/ansible/original/1X/1882d9a01da5d8996a862359b0913cc568a39b84.svg) [@system](https://forum.ansible.com/u/system)\
**Post date:** [October 12, 2018, 3:10pm UTC](https://forum.ansible.com/t/ending-summary-of-a-playbook/28776/2 "2018-10-12T15:10:08Z")

</div>

you might be able to do this via set\_stats  
[https://docs.ansible.com/ansible/latest/modules/set\_stats\_module.html](https://docs.ansible.com/ansible/latest/modules/set_stats_module.html)?  
and the 'show custom stats' setting  
[https://docs.ansible.com/ansible/latest/reference\_appendices/config.html#show-custom-stats](https://docs.ansible.com/ansible/latest/reference_appendices/config.html#show-custom-stats)
