Task Output import to SQL

11 views
Skip to first unread message

Ansible_USer2019

unread,
Dec 4, 2019, 5:00:49 PM12/4/19
to Ansible Project
Hi Group,

i want to run several jobs. How can the JSON result stored in a database or something like that to check what happened? 
I am not using tower or awx. 

So do i need to pipe the output into a text file and run another script to parse the content and import everything into a SQL database?

Thank you

Stefan Hornburg (Racke)

unread,
Dec 5, 2019, 4:07:13 AM12/5/19
to ansible...@googlegroups.com
The logical way would be to use one of the existing callback plugins or write your own:

https://docs.ansible.com/ansible/latest/plugins/callback.html

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/9e05d8fb-4521-4e13-abb4-08dc2fdffb7d%40googlegroups.com
> <https://groups.google.com/d/msgid/ansible-project/9e05d8fb-4521-4e13-abb4-08dc2fdffb7d%40googlegroups.com?utm_medium=email&utm_source=footer>.


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

signature.asc
Reply all
Reply to author
Forward
0 new messages