# AWX Inventory plugin versus Ansible-Inventory plugin?

**URL:** <https://forum.ansible.com/t/awx-inventory-plugin-versus-ansible-inventory-plugin/31680>\
**Category:** AWX Project\
**Tags:** azure, awx\
**Created:** [November 19, 2019, 2:34am UTC](https://forum.ansible.com/t/awx-inventory-plugin-versus-ansible-inventory-plugin/31680 "2019-11-19T02:34:51Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Adam\_Morris](https://avatars.discourse-cdn.com/v4/letter/a/ecae2f/32.png) [@Adam\_Morris](https://forum.ansible.com/u/Adam_Morris)\
**Post date:** [November 19, 2019, 2:34am UTC](https://forum.ansible.com/t/awx-inventory-plugin-versus-ansible-inventory-plugin/31680/1 "2019-11-19T02:34:51Z")

</div>

Greetings,

If I create an Inventory in AWX, using the “Microsoft Axure-RM” source which inventory plugin gets used?

bash-4.2# find / -name azure\_rm.py -ls  
39186676 32 -rw-r–r-- 1 root root 30038 Oct 17 18:11 /usr/lib/python2.7/site-packages/ansible/plugins/inventory/azure\_rm.py  
20799869 40 -rwxr-xr-x 1 root root 40840 Nov 19 02:27 /var/lib/awx/venv/awx/lib/python3.6/site-packages/awx/plugins/inventory/azure\_rm.py  
bash-4.2#

There are two on the machine, and it looks to me like the second one is the “awx inventory plugin” but when I look at the logs for an inventory sync I see a log that looks like this:

2.345 INFO Updating inventory 9: Azure-Rm

2  
[WARNING]: jinja2\_native requires Jinja 2.10 and above. Version detected:

3  
2.7.2. Falling back to default.

4

5  
2.758 INFO Reading Ansible inventory source: /tmp/awx\_538\_btkpydyn/azure\_rm.yml

6  
2.760 INFO Using VIRTUAL\_ENV: /var/lib/awx/venv/ansible

7  
2.760 INFO Using PATH: /var/lib/awx/venv/ansible/bin:/var/lib/awx/venv/awx/bin:/var/lib/awx/venv/awx/bin:/var/lib/awx/venv/awx/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin

8  
2.760 INFO Using PYTHONPATH: /var/lib/awx/venv/ansible/lib/python2.7/site-packages:

9  
10.223 ERROR ansible-inventory 2.8.6

10  
10.223 ERROR config file = /etc/ansible/ansible.cfg

11  
10.223 ERROR configured module search path = [u’/var/lib/awx/.ansible/plugins/modules’, u’/usr/share/ansible/plugins/modules’]

12  
10.223 ERROR ansible python module location = /usr/lib/python2.7/site-packages/ansible

13  
10.223 ERROR executable location = /usr/bin/ansible-inventory

14  
10.223 ERROR python version = 2.7.5 (default, Aug 7 2019, 00:51:29) [GCC 4.8.5 20150623 (Red Hat 4.8.5-39)]

15  
10.223 ERROR Using /etc/ansible/ansible.cfg as config file

16  
10.223 ERROR Parsed /tmp/awx\_538\_btkpydyn/azure\_rm.yml inventory source with auto plugin

17  
10.223 ERROR [WARNING]: Found both group and host with same name: wn70005

18  
10.223 ERROR

19  
10.224 INFO Processing JSON output…

20  
10.226 INFO Loaded 25 groups, 16 hosts

21  
2019-11-07 18:57:23,817 DEBUG awx.main.models.inventory Going to update inventory computed fields, pk=9

22  
2019-11-07 18:57:24,187 DEBUG awx.main.models.inventory Finished updating inventory computed fields, pk=9, in 0.368 seconds

23  
11.130 INFO Inventory import completed for Azure RM PSJH Core Infrastructure Prod in 8.8s

So, what is the difference between the two plugins and why does the AWX one even exist?

Is there a design document somewhere that actually talks about this confusing structure?

Adam

---

<div class="post-metadata">

**Author:** ![Ompragash](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/ompragash/32/9070_2.png) [@Ompragash](https://forum.ansible.com/u/Ompragash)\
**Post date:** [November 21, 2019, 6:19pm UTC](https://forum.ansible.com/t/awx-inventory-plugin-versus-ansible-inventory-plugin/31680/2 "2019-11-21T18:19:06Z")

</div>

Hi Adam,

As you can refer to the below link when you select Microsoft Azure RM, the ansible azure\_rm inventory plugin is used and not the azure\_rm.py script:

> [https://docs.ansible.com/ansible-tower/latest/html/userguide/inventories.html#inventory-plugins](https://docs.ansible.com/ansible-tower/latest/html/userguide/inventories.html#inventory-plugins)

Regards,  
Ompragash
