Check this out https://github.com/nousdefions/ansible-tricks/tree/master/save_facts
You can see that in this example I'm also uploading the JSON to S3, but you can of course fork and tweak it for your use case. There are two variations, one that makes one giant JSON file or one to make one json file per host. Credit to James Martin for helping me out with this a while back. On Sunday, November 9, 2014 1:28:23 AM UTC-5, Darup tek wrote: > > I managed it using the ansible.runner > Is it the right way to do it ?? > > On Saturday, November 8, 2014 9:34:40 PM UTC-8, Darup tek wrote: >> >> I am trying to gather information about some 200 servers using the setup >> command. >> I would like to get the output as one json data. I could see 200 json >> outputs. >> How do I get all the date into one json file with 200 servers information. >> >> Appreciate the help. >> > -- 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 [email protected]. To post to this group, send email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/27f196fe-9817-401a-8699-5b5a27c51411%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
