Automatic Inventory generation in classical ansible inventory structure based on user input

Hi!

I have a use case where i want to generate an ansible inventory based on the user input. But inventory is not just like a hosts file where we defined the mapping of groups to host. I want to define a file for each host and then each host has a set of variables, similarly i also want to define files for each group and then to define a list of variables in each group. All in all, a fully customized way to create inventory with default variables already defined and also functionality to define new variables on run time along the way.

Is there such a CMD/GUI tool or something exist ? .I already know about AWX, while for AWX it doesn’t generate an inventory in such a way as I explained and also they are stored in docker volumes, and can;t be physically accessed (AFAIK) like a file structure i want.

AWX Inventory is stored in the database. You can source inventory from SCM (i.e. git) repos that are dynamic inventory scripts, or more simple Ansible inventory files with host_vars dirs and such.

As to your question. I’m failing to see how AWX can meet your particular need. I think this is more of an Ansible ecosystem question and would be best asked on the Ansible mailing list.