add hosts in inventory to template survey

Hello All,
a couple of questions - any suggestions or methods or scripts that can add hosts
in an AWX inventory to a template survey - NOT manually?

Question 2 : Is there a script - python or otherwise that will add hosts to an AWX inventory - aganin NOT manually.

It looks like in my case I will need a text file that has the desired hosts, and then a script
reads the hosts and perhaps loads them in via the api.

Any suggestions are welcome.

Thanks,
ewholz

Yes you can use awxkit or awx collection to add hosts from an inventory to a Job Template survey (it is possible to do via API, but these tools make this process easier and cleaner)

see this documentation for more information https://docs.ansible.com/ansible/latest/collections/awx/awx/job_template_module.html#notes

Let us know if this helps,

AWX Team

Why not use inventory sources for your inventory and pass on a inventory.ini?