# Failed to load inventory plugin, skipping community.vmware.vmware\_vm\_inventory

**URL:** <https://forum.ansible.com/t/failed-to-load-inventory-plugin-skipping-community-vmware-vmware-vm-inventory/34618>\
**Category:** Ansible Project\
**Tags:** vmware\
**Created:** [February 13, 2021, 12:52am UTC](https://forum.ansible.com/t/failed-to-load-inventory-plugin-skipping-community-vmware-vmware-vm-inventory/34618 "2021-02-13T00:52:08Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![Kiran\_Kumar](https://avatars.discourse-cdn.com/v4/letter/k/f475e1/32.png) [@Kiran\_Kumar](https://forum.ansible.com/u/Kiran_Kumar)\
**Post date:** [February 13, 2021, 12:52am UTC](https://forum.ansible.com/t/failed-to-load-inventory-plugin-skipping-community-vmware-vmware-vm-inventory/34618/1 "2021-02-13T00:52:08Z")

</div>

Hi,

When i run below as Jenkins user i get error

ansible-playbook /etc/ansible/playbooks/uptime-inv-based.yml -i /etc/ansible/playbooks/dc-inv-ALL-vmware.yml  
[WARNING]: Failed to load inventory plugin, skipping community.vmware.vmware\_vm\_inventory  
ERROR! No inventory plugins available to generate inventory, make sure you have at least one whitelisted.

but when run as root it works

I tried PATH matching but no luck

Any suggestions Please ?

---

<div class="post-metadata">

**Author:** ![Kiran\_Kumar](https://avatars.discourse-cdn.com/v4/letter/k/f475e1/32.png) [@Kiran\_Kumar](https://forum.ansible.com/u/Kiran_Kumar)\
**Post date:** [February 13, 2021, 2:23am UTC](https://forum.ansible.com/t/failed-to-load-inventory-plugin-skipping-community-vmware-vmware-vm-inventory/34618/2 "2021-02-13T02:23:30Z")

</div>

i removed dynamic inv & i can run playbook as jenkins user just fine

not sure what the dynamic inv plugin does not like to work with non-root user …

Any suggestions Please

---

<div class="post-metadata">

**Author:** ![Akasurde](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/akasurde/32/230_2.png) [@Akasurde](https://forum.ansible.com/u/Akasurde)\
**Post date:** [February 13, 2021, 3:38am UTC](https://forum.ansible.com/t/failed-to-load-inventory-plugin-skipping-community-vmware-vmware-vm-inventory/34618/3 "2021-02-13T03:38:04Z")

</div>

Hi,

Can you check the permission of the ` /etc/ansible/playbooks/dc-inv-ALL-vmware.yml`? if those are only root readable then the non-root users won’t be able to read it and you will get errors.

---

<div class="post-metadata">

**Author:** ![Kiran\_Kumar](https://avatars.discourse-cdn.com/v4/letter/k/f475e1/32.png) [@Kiran\_Kumar](https://forum.ansible.com/u/Kiran_Kumar)\
**Post date:** [February 13, 2021, 7:05am UTC](https://forum.ansible.com/t/failed-to-load-inventory-plugin-skipping-community-vmware-vmware-vm-inventory/34618/4 "2021-02-13T07:05:06Z")

</div>

i already tried 777 on that file … no luck

---

<div class="post-metadata">

**Author:** ![Dick\_Visser](https://avatars.discourse-cdn.com/v4/letter/d/d9b06d/32.png) [@Dick\_Visser](https://forum.ansible.com/u/Dick_Visser)\
**Post date:** [February 13, 2021, 9:42am UTC](https://forum.ansible.com/t/failed-to-load-inventory-plugin-skipping-community-vmware-vmware-vm-inventory/34618/5 "2021-02-13T09:42:15Z")

</div>

Ddi you check the directories in that path as well?

---

<div class="post-metadata">

**Author:** ![Kiran\_Kumar](https://avatars.discourse-cdn.com/v4/letter/k/f475e1/32.png) [@Kiran\_Kumar](https://forum.ansible.com/u/Kiran_Kumar)\
**Post date:** [February 13, 2021, 6:44pm UTC](https://forum.ansible.com/t/failed-to-load-inventory-plugin-skipping-community-vmware-vmware-vm-inventory/34618/6 "2021-02-13T18:44:35Z")

</div>

yes dir are ok as well… see same playbook as soon as i remove the [inventory] section , with user jenkins works well… so something odd here or something really silly

---

<div class="post-metadata">

**Author:** ![Kiran\_Kumar](https://avatars.discourse-cdn.com/v4/letter/k/f475e1/32.png) [@Kiran\_Kumar](https://forum.ansible.com/u/Kiran_Kumar)\
**Post date:** [February 13, 2021, 7:19pm UTC](https://forum.ansible.com/t/failed-to-load-inventory-plugin-skipping-community-vmware-vmware-vm-inventory/34618/7 "2021-02-13T19:19:35Z")

</div>

checking below

grep -i plugin /etc/ansible/ansible.cfg  
#plugin\_filters\_cfg = /etc/ansible/plugin\_filters.yml

## Ansible ships with some plugins that require whitelisting,

## Custom plugins should not need this unless plugin author specifies it.

# enable callback plugins, they can output to stdout but cannot be ‘stdout’ type.

# set plugin path directories here, separate with colons

#action\_plugins = /usr/share/ansible/plugins/action  
#become\_plugins = /usr/share/ansible/plugins/become  
#cache\_plugins = /usr/share/ansible/plugins/cache  
#callback\_plugins = /usr/share/ansible/plugins/callback  
#connection\_plugins = /usr/share/ansible/plugins/connection  
#lookup\_plugins = /usr/share/ansible/plugins/lookup  
inventory\_plugins = /usr/share/ansible/plugins/inventory  
#vars\_plugins = /usr/share/ansible/plugins/vars  
#filter\_plugins = /usr/share/ansible/plugins/filter  
#test\_plugins = /usr/share/ansible/plugins/test  
#terminal\_plugins = /usr/share/ansible/plugins/terminal  
#strategy\_plugins = /usr/share/ansible/plugins/strategy  
#This option tells Ansible where to cache facts. The value is plugin dependent.  
#For the jsonfile plugin, it should be a path to a local directory.  
#For the redis plugin, the value is a host:port:database triplet: fact\_caching\_connection = localhost:6379:0

# enable inventory plugins, default: ‘host\_list’, ‘script’, ‘auto’, ‘yaml’, ‘ini’, ‘toml’

#enable\_plugins = host\_list, virtualbox, yaml, constructed

# uncomment this line to cause the paramiko connection plugin to not record new host

enable\_plugins = community.vmware.vmware\_vm\_inventory

---

<div class="post-metadata">

**Author:** ![Kiran\_Kumar](https://avatars.discourse-cdn.com/v4/letter/k/f475e1/32.png) [@Kiran\_Kumar](https://forum.ansible.com/u/Kiran_Kumar)\
**Post date:** [February 14, 2021, 6:42pm UTC](https://forum.ansible.com/t/failed-to-load-inventory-plugin-skipping-community-vmware-vmware-vm-inventory/34618/8 "2021-02-14T18:42:59Z")

</div>

found a possible issue , vmware modules got installed in root home …

/root/.ansible/collections/ansible\_collections/community/vmware/plugins/modules  
/root/.ansible/collections/ansible\_collections/community/vmware/tests/unit/modules

SO copied & did 744 in below

/usr/share/ansible/plugins/modules.

but no luck so far

trying to undersand now to which config parameter installed in home dir & try re-install to generic location …

---

<div class="post-metadata">

**Author:** ![Kiran\_Kumar](https://avatars.discourse-cdn.com/v4/letter/k/f475e1/32.png) [@Kiran\_Kumar](https://forum.ansible.com/u/Kiran_Kumar)\
**Post date:** [February 14, 2021, 6:50pm UTC](https://forum.ansible.com/t/failed-to-load-inventory-plugin-skipping-community-vmware-vmware-vm-inventory/34618/9 "2021-02-14T18:50:08Z")

</div>

[https://stackoverflow.com/questions/53750049/location-to-keep-ansible-custom-modules](https://stackoverflow.com/questions/53750049/location-to-keep-ansible-custom-modules)

---

<div class="post-metadata">

**Author:** ![Dick\_Visser](https://avatars.discourse-cdn.com/v4/letter/d/d9b06d/32.png) [@Dick\_Visser](https://forum.ansible.com/u/Dick_Visser)\
**Post date:** [February 14, 2021, 8:41pm UTC](https://forum.ansible.com/t/failed-to-load-inventory-plugin-skipping-community-vmware-vmware-vm-inventory/34618/10 "2021-02-14T20:41:01Z")

</div>

> found a possible issue , vmware modules got installed in root home ...
> 
> /root/.ansible/collections/ansible\_collections/community/vmware/plugins/modules  
> /root/.ansible/collections/ansible\_collections/community/vmware/tests/unit/modules

Why did you install that there?

> SO copied & did 744 in below
> 
> /usr/share/ansible/plugins/modules.

What does "doing 744" mean?  
If that is meant to be set as permission, then I wonder what you are  
trying to do as that is not common for a directories nor for files.

---

<div class="post-metadata">

**Author:** ![Dick\_Visser](https://avatars.discourse-cdn.com/v4/letter/d/d9b06d/32.png) [@Dick\_Visser](https://forum.ansible.com/u/Dick_Visser)\
**Post date:** [February 14, 2021, 8:51pm UTC](https://forum.ansible.com/t/failed-to-load-inventory-plugin-skipping-community-vmware-vmware-vm-inventory/34618/11 "2021-02-14T20:51:34Z")

</div>

And the point of this link is...?

I appreciate your ongoing journey of discovering the world of system  
administration.  
But instead of frantically trying random things from the internet and  
posting the results here, perhaps it's better to ask some senior  
colleague for help sorting out the basics first.  
BTW your communication style with short message and little context  
might be better for the "IRC" medium:  
[https://docs.ansible.com/ansible/latest/community/communication.html#irc-channels](https://docs.ansible.com/ansible/latest/community/communication.html#irc-channels)
