In this possible to upload a inventory yaml file to awx inventory

in this possible to upload a inventory yaml file to awx inventory.

I have created a inventory yaml file having 20 host in it, Is this possible to upload/copy the inventory file in awx->resources->inventory section.
Adding the 20 host or more is painfull job in awx->resources-hosts section. then add these to awx-inventory.

1 Like

@krushnarama Hello.

You can use the inventory source from a project.

https://docs.ansible.com/automation-controller/4.4/html/userguide/inventories.html#sourced-from-a-project

I copied my project to /var/lib/awx/projects of task pod using “kubectl cp” . it contains a inventory file. But I am seeing below error.

Error in awx - inventory → " Create new source" as below

"Cannot use manual project for SCM-based inventory."

The project I creates using "manual " getting detected properly but inventory → “Create new source” page do not detect the ini file from that project and if mentioning the file name manually it gives the above error.

is the awx inventory is only from git project ?
is the awx inventory does not support if we copy the project manually to the task pod ?

@krushnarama

is the awx inventory is only from git project ?

Yes, SCM-based inventory (such as git) only supported.

Thank you @ akira6592 for the information.