Generating Report After Executing Playbook Tasks

111 views
Skip to first unread message

aksain bhati

unread,
Jan 8, 2021, 3:07:34 PM1/8/21
to Ansible Project

Hello,
can you please help me to generate a final report after running playbook
I have different playbooks for execution and I want a single report file for all.
So that  non-technical team can review the output.
Please tell if it is possible in CSV format.

Dick Visser

unread,
Jan 8, 2021, 4:19:04 PM1/8/21
to ansible...@googlegroups.com
Create a single playbook that includes the other ones.
> --
> 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.
> To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/6ce0c54f-0465-4241-a29d-0ab97432e4e2n%40googlegroups.com.



--
Dick Visser
Trust & Identity Service Operations Manager
GÉANT

aksain bhati

unread,
Jan 8, 2021, 6:27:39 PM1/8/21
to Ansible Project
That make sense but still  any suggestion on generating report

harry devine

unread,
Jan 8, 2021, 6:30:40 PM1/8/21
to ansible...@googlegroups.com
I've done this by using a template. But I don't have access to my work system to get you an example. I can get one later or over the weekend if you'd like. 

Harry

Stefan Hornburg (Racke)

unread,
Jan 9, 2021, 4:50:14 AM1/9/21
to ansible...@googlegroups.com
On 1/9/21 12:27 AM, aksain bhati wrote:
> That make sense but still  any suggestion on generating report
>

You could give ARA a try: https://ara.recordsansible.org/

Regards
Racke

>
> On Saturday, January 9, 2021 at 2:49:04 AM UTC+5:30 dick....@geant.org wrote:
>
> Create a single playbook that includes the other ones.
>
> On Fri, 8 Jan 2021 at 21:07, aksain bhati <aksai...@gmail.com> wrote:
> >
> >
> > Hello,
> > can you please help me to generate a final report after running playbook
> > I have different playbooks for execution and I want a single report file for all.
> > So that non-technical team can review the output.
> > Please tell if it is possible in CSV format.
> >
> > --
> > 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.
> > To view this discussion on the web visit
> https://groups.google.com/d/msgid/ansible-project/6ce0c54f-0465-4241-a29d-0ab97432e4e2n%40googlegroups.com
> <https://groups.google.com/d/msgid/ansible-project/6ce0c54f-0465-4241-a29d-0ab97432e4e2n%40googlegroups.com>.
>
>
>
> --
> Dick Visser
> Trust & Identity Service Operations Manager
> GÉANT
>
> --
> 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/dc3fb386-15ce-4c18-98d0-4b38ba8d7f9bn%40googlegroups.com
> <https://groups.google.com/d/msgid/ansible-project/dc3fb386-15ce-4c18-98d0-4b38ba8d7f9bn%40googlegroups.com?utm_medium=email&utm_source=footer>.


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

OpenPGP_signature

aksain bhati

unread,
Jan 9, 2021, 7:41:26 AM1/9/21
to Ansible Project
Thanks, Harry
Please share one of them.
Have a  nice weekend.
Appreciated :)

aksain bhati

unread,
Jan 9, 2021, 7:43:43 AM1/9/21
to Ansible Project
Hello, Racke
can you please share an example code so that I can understand better
Thanks man
Appreciated

aksain bhati

unread,
Jan 9, 2021, 7:55:39 AM1/9/21
to Ansible Project
As i can see in document  ara  Sends playbook execution data to the ARA API internally or over HTTP
but I want output in control node so is there any way to do same

Stefan Hornburg (Racke)

unread,
Jan 9, 2021, 8:08:42 AM1/9/21
to ansible...@googlegroups.com
On 1/9/21 1:55 PM, aksain bhati wrote:
> As i can see in document  ara  Sends playbook execution data to the ARA API internally or over HTTP
> but I want output in control node so is there any way to do same

The output can be stored in a local database, see "ARA is offline and decentralized by default.".

Regards
Racke

> On Saturday, January 9, 2021 at 6:13:43 PM UTC+5:30 aksain bhati wrote:
>
> Hello, Racke
> can you please share an example code so that I can understand better
> Thanks man
> Appreciated
>
>
> On Saturday, January 9, 2021 at 3:20:14 PM UTC+5:30 brae...@gmail.com wrote:
>
> On 1/9/21 12:27 AM, aksain bhati wrote:
> > That make sense but still  any suggestion on generating report
> >
>
> You could give ARA a try: https://ara.recordsansible.org/ <https://ara.recordsansible.org/>
> <https://groups.google.com/d/msgid/ansible-project/dc3fb386-15ce-4c18-98d0-4b38ba8d7f9bn%40googlegroups.com?utm_medium=email&utm_source=footer
> <https://groups.google.com/d/msgid/ansible-project/dc3fb386-15ce-4c18-98d0-4b38ba8d7f9bn%40googlegroups.com?utm_medium=email&utm_source=footer>>.
>
>
>
> --
> Ecommerce and Linux consulting + Perl and web application programming.
> Debian and Sympa administration. Provisioning with Ansible.
>
> --
> 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/63a9a56d-e78c-491f-b14a-0fb2c2fea82cn%40googlegroups.com
> <https://groups.google.com/d/msgid/ansible-project/63a9a56d-e78c-491f-b14a-0fb2c2fea82cn%40googlegroups.com?utm_medium=email&utm_source=footer>.
OpenPGP_signature

aksain bhati

unread,
Jan 9, 2021, 8:16:24 AM1/9/21
to Ansible Project
If any example available it would be helpful

Piya Attapatto

unread,
Jan 9, 2021, 9:07:47 AM1/9/21
to ansible...@googlegroups.com
There was a talk about this at a London ansible meetup in 2019.

The speaker wrote a callback plugin to return CSV formatted ansible output. I think the PR got declined but you could write something similar for your use case.

Here's a link to the talk: https://youtu.be/Dj0hgliEjA8

aksain bhati

unread,
Jan 9, 2021, 12:22:41 PM1/9/21
to Ansible Project
Hi, Piya
thanks, link is so usefully,
in my case diff conditions are there, so I need demo code if available!
Reply all
Reply to author
Forward
0 new messages