Is there a way to print a report at the end of an ansible run?

28 views
Skip to first unread message

bur...@scalefastr.io

unread,
Dec 12, 2017, 4:39:16 PM12/12/17
to Ansible Project
I have an ansible setup that generates a set of clusters and their configuration.

I want to print (locally) a report showing which services were deployed, what their credentials were, etc.

debug won't work because the output it escaped so I get lots of \n\n ... 

a command with 'cat' won't work because it just prints 'success' .

Any thoughts?

Matt Martz

unread,
Dec 12, 2017, 4:51:11 PM12/12/17
to ansible...@googlegroups.com
You could write a callback plugin that aggregates that data, and prints out on `v2_playbook_on_stats` similarly to the way the `PLAY RECAP` is output.

--
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+unsubscribe@googlegroups.com.
To post to this group, send email to ansible-project@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/9a7d3562-278b-401d-996c-bf3bd11b7164%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--
Matt Martz
@sivel
sivel.net
Reply all
Reply to author
Forward
0 new messages