Is it possible to populate host_vars and group_vars with results from a database like we do in dynamic inventories?
Actually I'm doing it inside my playbook either with lookups, either by using shell module and registering queries result.
If anyone has a more elegant way of populating variables like making an executable host_var file printing JSON to stdout or so ..