Print stout of failed task in recap

20 views
Skip to first unread message

Jitender J

unread,
Dec 24, 2021, 9:13:23 AM12/24/21
to Ansible Project
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 ***********************************************************************************************************************************************

Stefan Hornburg (Racke)

unread,
Dec 25, 2021, 1:57:27 AM12/25/21
to ansible...@googlegroups.com
Hello,

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

Regards
Racke

> --
> 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-proje...@googlegroups.com <mailto:ansible-proje...@googlegroups.com>.
> To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/1eef7008-c30c-4ab4-af26-8b04fa8d9a7fn%40googlegroups.com <https://groups.google.com/d/msgid/ansible-project/1eef7008-c30c-4ab4-af26-8b04fa8d9a7fn%40googlegroups.com?utm_medium=email&utm_source=footer>.


--
Ecommerce and Linux consulting + Perl and web application programming.
Debian and Sympa administration.


OpenPGP_signature

Jitender J

unread,
Dec 25, 2021, 2:29:08 AM12/25/21
to ansible...@googlegroups.com
Hello, 

Done some changes in callback module


To unsubscribe from this group and stop receiving emails from it, send an email to ansible-proje...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/971d2390-ea47-f6f9-473a-d34f837a2b4b%40linuxia.de.

Stefan Hornburg (Racke)

unread,
Dec 25, 2021, 2:40:05 AM12/25/21
to ansible...@googlegroups.com
On 25/12/2021 08:28, 'Jitender J' via Ansible Project wrote:
> Hello,
>
> Done some changes in callback module
>

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

Regards
Racke
> > To unsubscribe from this group and stop receiving emails from it, send an email to ansible-proje...@googlegroups.com <mailto:ansible-project%2Bunsu...@googlegroups.com> <mailto:ansible-proje...@googlegroups.com <mailto:ansible-project%2Bunsu...@googlegroups.com>>.
> > To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/1eef7008-c30c-4ab4-af26-8b04fa8d9a7fn%40googlegroups.com <https://groups.google.com/d/msgid/ansible-project/1eef7008-c30c-4ab4-af26-8b04fa8d9a7fn%40googlegroups.com> <https://groups.google.com/d/msgid/ansible-project/1eef7008-c30c-4ab4-af26-8b04fa8d9a7fn%40googlegroups.com?utm_medium=email&utm_source=footer <https://groups.google.com/d/msgid/ansible-project/1eef7008-c30c-4ab4-af26-8b04fa8d9a7fn%40googlegroups.com?utm_medium=email&utm_source=footer>>.
>
>
> --
> Ecommerce and Linux consulting + Perl and web application programming.
> Debian and Sympa administration.
>
>
> --
> 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-proje...@googlegroups.com <mailto:ansible-project%2Bunsu...@googlegroups.com>.
> To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/971d2390-ea47-f6f9-473a-d34f837a2b4b%40linuxia.de <https://groups.google.com/d/msgid/ansible-project/971d2390-ea47-f6f9-473a-d34f837a2b4b%40linuxia.de>.
>
> --
> 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-proje...@googlegroups.com <mailto:ansible-proje...@googlegroups.com>.
> To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/CAMO4JZv0wvnHVQ5nVYknYjQzU%3DLru4MCFQDapyi-9kBPE%3D-Npw%40mail.gmail.com <https://groups.google.com/d/msgid/ansible-project/CAMO4JZv0wvnHVQ5nVYknYjQzU%3DLru4MCFQDapyi-9kBPE%3D-Npw%40mail.gmail.com?utm_medium=email&utm_source=footer>.
OpenPGP_signature
Reply all
Reply to author
Forward
0 new messages