# Print stout of failed task in recap

**URL:** <https://forum.ansible.com/t/print-stout-of-failed-task-in-recap/36154>\
**Category:** Ansible Project\
**Created:** [December 24, 2021, 2:13pm UTC](https://forum.ansible.com/t/print-stout-of-failed-task-in-recap/36154 "2021-12-24T14:13:23Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jitender\_J](https://avatars.discourse-cdn.com/v4/letter/j/2bfe46/32.png) [@Jitender\_J](https://forum.ansible.com/u/Jitender_J)\
**Post date:** [December 24, 2021, 2:13pm UTC](https://forum.ansible.com/t/print-stout-of-failed-task-in-recap/36154/1 "2021-12-24T14:13:23Z")

</div>

Hi Team,

Hope everyone is doing good,

I am wondering if there is a way to print stdout of a failed task in playbook recap

PLAY RECAP \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*

Playbook Executed: zdx\_test.yml \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*

LIST OF FAILED NODES AND TASKS WHICH FAILED ON THEM \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*

TASK=Check total CPU cores:  
FAILED NODES=zdx-was1-vui-1b-smui1  
what was the stdout value, don’t want to scroll up  
SERVICE FAILED ON TOTAL INSTANCES : 1

TASK=Checking Connetion on Port 443 On ZIA SMUI From Provided UI:  
FAILED NODES=zdx-was1-vui-1b-smui1  
what was the stdout value, don’t want to scroll up  
SERVICE FAILED ON TOTAL INSTANCES : 1

TASK=Check total memory:  
FAILED NODES=zdx-was1-vui-1b-smui1  
what was the stdout value, don’t want to scroll up  
SERVICE FAILED ON TOTAL INSTANCES : 1

ALL NODES ARE REACHABLE \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*

---

<div class="post-metadata">

**Author:** ![racke](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/racke/32/4767_2.png) [@racke](https://forum.ansible.com/u/racke)\
**Post date:** [December 25, 2021, 6:57am UTC](https://forum.ansible.com/t/print-stout-of-failed-task-in-recap/36154/2 "2021-12-25T06:57:04Z")

</div>

> Hi Team,
> 
> Hope everyone is doing good,
> 
> I am wondering if there is a way to print stdout of a failed task in playbook recap
> 
> PLAY RECAP \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*
> 
> Playbook Executed: zdx\_test.yml \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*
> 
> LIST OF FAILED NODES AND TASKS WHICH FAILED ON THEM \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*
> 
> TASK=Check total CPU cores:  
> FAILED NODES=zdx-was1-vui-1b-smui1  
> what was the stdout value, don't want to scroll up  
> SERVICE FAILED ON TOTAL INSTANCES : 1
> 
> TASK=Checking Connetion on Port 443 On ZIA SMUI From Provided UI:  
> FAILED NODES=zdx-was1-vui-1b-smui1  
> what was the stdout value, don't want to scroll up  
> SERVICE FAILED ON TOTAL INSTANCES : 1
> 
> TASK=Check total memory:  
> FAILED NODES=zdx-was1-vui-1b-smui1  
> what was the stdout value, don't want to scroll up  
> SERVICE FAILED ON TOTAL INSTANCES : 1
> 
> ALL NODES ARE REACHABLE \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*

Hello,

how do you generate the "LIST OF FAILED NODES AND TASKS WHICH FAILED ON THEM" ?

Regards  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Racke

---

<div class="post-metadata">

**Author:** ![Jitender\_J](https://avatars.discourse-cdn.com/v4/letter/j/2bfe46/32.png) [@Jitender\_J](https://forum.ansible.com/u/Jitender_J)\
**Post date:** [December 25, 2021, 7:28am UTC](https://forum.ansible.com/t/print-stout-of-failed-task-in-recap/36154/3 "2021-12-25T07:28:43Z")

</div>

Hello,

Done some changes in callback module

---

<div class="post-metadata">

**Author:** ![racke](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/racke/32/4767_2.png) [@racke](https://forum.ansible.com/u/racke)\
**Post date:** [December 25, 2021, 7:39am UTC](https://forum.ansible.com/t/print-stout-of-failed-task-in-recap/36154/4 "2021-12-25T07:39:43Z")

</div>

> Hello,
> 
> Done some changes in callback module

OK, you can get the stdout value by saving it with register task parameter.

Regards  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Racke
