I'm trying to collect servers inventory with ansible using the following command:
ansible all -m setup -a --tree facts/
but this is generating a lot os single files for each host under facts folder.
I would like all servers output in a unique file, I noticed the content is similar to json. I want to use it to read in python later and use the hostname as keys for the python dictionary and just read the the facts regarding each host collected.
Is there something like below??
ansible localhost -m setup -a --tree --single-file facts/