ansible registered variable reporting

17 views
Skip to first unread message

marek cervenka

unread,
Nov 21, 2014, 9:02:22 AM11/21/14
to ansible...@googlegroups.com
hi,

i want use ansible as "data miner". like get information X from 100 hosts and report it to the local file (on ansible host) or export it to the elasticsearch server

can you recommend the best way?

thanks

Brian Coca

unread,
Nov 21, 2014, 9:18:41 AM11/21/14
to ansible...@googlegroups.com
look at the -t option for the ansible ad-hoc
> --
> 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 post to this group, send email to ansible...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/ansible-project/eceb63f5-0af4-43a5-8077-d53c47feb63b%40googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.



--
Brian Coca

marek cervenka

unread,
Nov 21, 2014, 9:43:38 AM11/21/14
to ansible...@googlegroups.com
i'm using playbook

i prefer formatted report with jinja (something like template modul)

Dne pátek, 21. listopadu 2014 15:18:41 UTC+1 Brian Coca napsal(a):

Brian Coca

unread,
Nov 21, 2014, 10:00:31 AM11/21/14
to ansible...@googlegroups.com
there are filters to output json you can use with templates to create
valid json files, which you can use with the uri module to post
directly to elastic search.



--
Brian Coca
Reply all
Reply to author
Forward
0 new messages