Hello,
Well my question is pretty straight forward:
Actually we have tons of information stored on a db and i would like to know if it’s possible to get those and pass them to ansible as hosts/groups vars ?
It’s currently a postgresql db but we’re planning to switch to redis or mongodb.
It would be therefore easier to generate json data structures.
I’ve seen the following syntax in the ansible documentation :
–extra-vars “@some_file.json”
So the idea is to run the json generation before ansible execution.
Could please help me to figure out the best option ?
Thanks
Regards,
Smana