# AWX 3.0.1.0, Ansible 2.7.7 version - how to import inventory (host IPs) from a text file

**URL:** <https://forum.ansible.com/t/awx-3-0-1-0-ansible-2-7-7-version-how-to-import-inventory-host-ips-from-a-text-file/30187>\
**Category:** AWX Project\
**Tags:** awx\
**Created:** [April 25, 2019, 5:10pm UTC](https://forum.ansible.com/t/awx-3-0-1-0-ansible-2-7-7-version-how-to-import-inventory-host-ips-from-a-text-file/30187 "2019-04-25T17:10:23Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Mani\_Subramanian](https://avatars.discourse-cdn.com/v4/letter/m/e47774/32.png) [@Mani\_Subramanian](https://forum.ansible.com/u/Mani_Subramanian)\
**Post date:** [April 25, 2019, 5:10pm UTC](https://forum.ansible.com/t/awx-3-0-1-0-ansible-2-7-7-version-how-to-import-inventory-host-ips-from-a-text-file/30187/1 "2019-04-25T17:10:23Z")

</div>

I’m using AWX 3.0.1.0, Ansible 2.7.7 version. We have a custom Application with inventory host IPs in a file. How can I import these hosts into AWX inventory? I found reference to awx-manage in the internet. How can I install it? This command is not present in my AWX server. awx-manage function will solve my issue. Please let me know how to get it or how to import a text file containing host IPs into AWX inventory. Thanks, Mani

---

<div class="post-metadata">

**Author:** ![Abhinav\_anand](https://avatars.discourse-cdn.com/v4/letter/a/59ef9b/32.png) [@Abhinav\_anand](https://forum.ansible.com/u/Abhinav_anand)\
**Post date:** [April 25, 2019, 7:37pm UTC](https://forum.ansible.com/t/awx-3-0-1-0-ansible-2-7-7-version-how-to-import-inventory-host-ips-from-a-text-file/30187/2 "2019-04-25T19:37:16Z")

</div>

Hi Mani,

If you are using some version control tools to sync your project. You can define a inventory and source it from it. Whenever you want to update your inventory, you can simply pull and refresh your project.

Hope that helps.

Thanks

---

<div class="post-metadata">

**Author:** ![Mani\_Subramanian](https://avatars.discourse-cdn.com/v4/letter/m/e47774/32.png) [@Mani\_Subramanian](https://forum.ansible.com/u/Mani_Subramanian)\
**Post date:** [April 25, 2019, 7:54pm UTC](https://forum.ansible.com/t/awx-3-0-1-0-ansible-2-7-7-version-how-to-import-inventory-host-ips-from-a-text-file/30187/3 "2019-04-25T19:54:12Z")

</div>

Thanks.

---

<div class="post-metadata">

**Author:** ![RC1](https://avatars.discourse-cdn.com/v4/letter/r/85f322/32.png) [@RC1](https://forum.ansible.com/u/RC1)\
**Post date:** [April 30, 2019, 6:17am UTC](https://forum.ansible.com/t/awx-3-0-1-0-ansible-2-7-7-version-how-to-import-inventory-host-ips-from-a-text-file/30187/4 "2019-04-30T06:17:05Z")

</div>

Hi Mani ,

Hope the following helps to resolve the issue -

To access awx-manage utility please go to the docker container using below command :

#docker exec -it awx\_web /bin/bash

# awx-manage --help (Will show the user guide for awx-manage)

For example:-

1. Enable docker awx\_web via the following command -

#docker exec -it awx\_web /bin/bash

1. Uncomment the path of inventory file from /etc./ansible/ansible.cfg

2. Customize the host file to be used for inventory import

Under “Ungrouped hosts”, add below host IPs:

192.168.100.1

192.168.100.10

1. Execute the following command to perform inventory import for inventory ID 5 -

#awx-manage inventory\_import --source=/etc./ansible/hosts

–inventory-id=5

if the above steps does not help , please share your ansible.cfg details and the steps you are following .

Best Regards.
