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.
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.