# Command Not found but module is installed

**URL:** <https://forum.ansible.com/t/command-not-found-but-module-is-installed/34074>\
**Category:** Ansible Project\
**Created:** [October 21, 2020, 2:31pm UTC](https://forum.ansible.com/t/command-not-found-but-module-is-installed/34074 "2020-10-21T14:31:07Z")\
**Posts on this page:** 19\
**Page:** 1

<div class="post-metadata">

**Author:** ![Fiend\_Busa](https://avatars.discourse-cdn.com/v4/letter/f/5fc32e/32.png) [@Fiend\_Busa](https://forum.ansible.com/u/Fiend_Busa)\
**Post date:** [October 21, 2020, 2:31pm UTC](https://forum.ansible.com/t/command-not-found-but-module-is-installed/34074/1 "2020-10-21T14:31:07Z")

</div>



---

<div class="post-metadata">

**Author:** ![ffirg](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/ffirg/32/10029_2.png) [@ffirg](https://forum.ansible.com/u/ffirg)\
**Post date:** [October 21, 2020, 6:57pm UTC](https://forum.ansible.com/t/command-not-found-but-module-is-installed/34074/2 "2020-10-21T18:57:11Z")

</div>

what happens when you use the FQCN (fully qualified collection name) as part of the task? arubanetworks.aos\_switch.arubaoss\_command:

---

<div class="post-metadata">

**Author:** ![Fiend\_Busa](https://avatars.discourse-cdn.com/v4/letter/f/5fc32e/32.png) [@Fiend\_Busa](https://forum.ansible.com/u/Fiend_Busa)\
**Post date:** [October 21, 2020, 8:10pm UTC](https://forum.ansible.com/t/command-not-found-but-module-is-installed/34074/3 "2020-10-21T20:10:16Z")

</div>

Hey,

I get the same error:

ERROR! couldn’t resolve module/action ‘arubanetworks.aos\_switch.arubaoss\_command’. This often indicates a misspelling, missing collection, or incorrect module path.

12

13

---

<div class="post-metadata">

**Author:** ![Jorge\_Rua1](https://avatars.discourse-cdn.com/v4/letter/j/a87d85/32.png) [@Jorge\_Rua1](https://forum.ansible.com/u/Jorge_Rua1)\
**Post date:** [October 21, 2020, 8:13pm UTC](https://forum.ansible.com/t/command-not-found-but-module-is-installed/34074/4 "2020-10-21T20:13:34Z")

</div>

Can we assume you’re running an ansible version compatible with collections?  
What’s collection\_path on your ansible.cfg ?  
Have you tried running it with -vvv?

---

<div class="post-metadata">

**Author:** ![ffirg](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/ffirg/32/10029_2.png) [@ffirg](https://forum.ansible.com/u/ffirg)\
**Post date:** [October 21, 2020, 8:15pm UTC](https://forum.ansible.com/t/command-not-found-but-module-is-installed/34074/5 "2020-10-21T20:15:08Z")

</div>

Ok, so this is suggesting that it can’t find it on the default collections path to me. Do you have an ansible.cfg with anything in it for collections and where did you install the collection?

---

<div class="post-metadata">

**Author:** ![Fiend\_Busa](https://avatars.discourse-cdn.com/v4/letter/f/5fc32e/32.png) [@Fiend\_Busa](https://forum.ansible.com/u/Fiend_Busa)\
**Post date:** [October 22, 2020, 1:48pm UTC](https://forum.ansible.com/t/command-not-found-but-module-is-installed/34074/6 "2020-10-22T13:48:22Z")

</div>

Hey,

So all the collections are being installed in ~/._ansible_/_collections_/

ansible CFG is located in /etc/ansible.cfg

I have other collections as well (cisco.asa) it’s only the aruba one that is giving this error. I installed the collection directly on the ubuntu server and can see it under ~/._ansible_/_collections_/

---

<div class="post-metadata">

**Author:** ![Fiend\_Busa](https://avatars.discourse-cdn.com/v4/letter/f/5fc32e/32.png) [@Fiend\_Busa](https://forum.ansible.com/u/Fiend_Busa)\
**Post date:** [October 22, 2020, 2:09pm UTC](https://forum.ansible.com/t/command-not-found-but-module-is-installed/34074/7 "2020-10-22T14:09:26Z")

</div>

I can see ~./.ansible/collections/arubanetworks/aos\_switch/plugins/modules/arubaoss\_command.py

---

<div class="post-metadata">

**Author:** ![ffirg](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/ffirg/32/10029_2.png) [@ffirg](https://forum.ansible.com/u/ffirg)\
**Post date:** [October 22, 2020, 2:51pm UTC](https://forum.ansible.com/t/command-not-found-but-module-is-installed/34074/8 "2020-10-22T14:51:27Z")

</div>

what does ‘ansible-galaxy collection list’ output? mine are under ~/.ansible/collections/ansible\_collections  
what ansible version you on?

I’m not convinced that collection is complete as some of those modules don’t have docs that render for me using ansible-doc

---

<div class="post-metadata">

**Author:** ![Fiend\_Busa](https://avatars.discourse-cdn.com/v4/letter/f/5fc32e/32.png) [@Fiend\_Busa](https://forum.ansible.com/u/Fiend_Busa)\
**Post date:** [October 22, 2020, 5:10pm UTC](https://forum.ansible.com/t/command-not-found-but-module-is-installed/34074/9 "2020-10-22T17:10:25Z")

</div>

Hey,

Mine are all under: ~/.ansible/collections/ansible\_collections

ls -all in this directory gives me

ansible  
arubanetworks  
check\_point  
cisco  
community  
fortinet

---

<div class="post-metadata">

**Author:** ![ffirg](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/ffirg/32/10029_2.png) [@ffirg](https://forum.ansible.com/u/ffirg)\
**Post date:** [October 22, 2020, 8:07pm UTC](https://forum.ansible.com/t/command-not-found-but-module-is-installed/34074/10 "2020-10-22T20:07:43Z")

</div>

I suggest you update ansible so you get support for list. It also has a verify option now as well so you’ll find it useful in these situations.

---

<div class="post-metadata">

**Author:** ![ffirg](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/ffirg/32/10029_2.png) [@ffirg](https://forum.ansible.com/u/ffirg)\
**Post date:** [October 22, 2020, 8:09pm UTC](https://forum.ansible.com/t/command-not-found-but-module-is-installed/34074/11 "2020-10-22T20:09:07Z")

</div>

Check file permissions?  
Also try ansible-doc -l | grep aruba to see if it can find those modules

---

<div class="post-metadata">

**Author:** ![Fiend\_Busa](https://avatars.discourse-cdn.com/v4/letter/f/5fc32e/32.png) [@Fiend\_Busa](https://forum.ansible.com/u/Fiend_Busa)\
**Post date:** [October 23, 2020, 1:56pm UTC](https://forum.ansible.com/t/command-not-found-but-module-is-installed/34074/12 "2020-10-23T13:56:21Z")

</div>

I tried updating ansible but it keeps installing version 2.9.6 every time and not 2.10

As for ansible-doc -l | grep aruba

I get the following:

aruba\_command  
aruba\_config  
aruba\_module\_installer

---

<div class="post-metadata">

**Author:** ![Fiend\_Busa](https://avatars.discourse-cdn.com/v4/letter/f/5fc32e/32.png) [@Fiend\_Busa](https://forum.ansible.com/u/Fiend_Busa)\
**Post date:** [October 23, 2020, 1:57pm UTC](https://forum.ansible.com/t/command-not-found-but-module-is-installed/34074/13 "2020-10-23T13:57:43Z")

</div>

Im running ansible through AWX if that makes a difference.

---

<div class="post-metadata">

**Author:** ![Fiend\_Busa](https://avatars.discourse-cdn.com/v4/letter/f/5fc32e/32.png) [@Fiend\_Busa](https://forum.ansible.com/u/Fiend_Busa)\
**Post date:** [October 23, 2020, 2:18pm UTC](https://forum.ansible.com/t/command-not-found-but-module-is-installed/34074/14 "2020-10-23T14:18:37Z")

</div>

Ok i was able to update to 2.10

ansible-galaxy collection list does indeed show

arubanetworks.aos\_switch

---

<div class="post-metadata">

**Author:** ![ffirg](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/ffirg/32/10029_2.png) [@ffirg](https://forum.ansible.com/u/ffirg)\
**Post date:** [October 23, 2020, 3:15pm UTC](https://forum.ansible.com/t/command-not-found-but-module-is-installed/34074/15 "2020-10-23T15:15:38Z")

</div>

Yes that’ll make all the difference! You should have logged this issue against the awx group and given the full info upfront, so we could get to this point a lot quicker!  
You don’t need to install that collection locally first when using with awx. Just drop a requirements.yml file into a repo with your playbooks so AWX can pick it up and do the install in the right place for you. See my example here: [https://github.com/ffirg/tower\_collection\_example](https://github.com/ffirg/tower_collection_example) You might need to setup the creds for Galaxy in AWX as well so it can authenticate and do the install.

---

<div class="post-metadata">

**Author:** ![Fiend\_Busa](https://avatars.discourse-cdn.com/v4/letter/f/5fc32e/32.png) [@Fiend\_Busa](https://forum.ansible.com/u/Fiend_Busa)\
**Post date:** [October 23, 2020, 4:25pm UTC](https://forum.ansible.com/t/command-not-found-but-module-is-installed/34074/16 "2020-10-23T16:25:20Z")

</div>

😮

Sorry haha, I will try that, fingers crossed!

---

<div class="post-metadata">

**Author:** ![Fiend\_Busa](https://avatars.discourse-cdn.com/v4/letter/f/5fc32e/32.png) [@Fiend\_Busa](https://forum.ansible.com/u/Fiend_Busa)\
**Post date:** [October 23, 2020, 4:56pm UTC](https://forum.ansible.com/t/command-not-found-but-module-is-installed/34074/17 "2020-10-23T16:56:24Z")

</div>

Im still getting the same error :(!!!

ERROR! couldn’t resolve module/action ‘arubaoss\_command’. This often indicates a misspelling, missing collection, or incorrect module path.

in my github I have a file named requirements.yml

---

<div class="post-metadata">

**Author:** ![ffirg](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/ffirg/32/10029_2.png) [@ffirg](https://forum.ansible.com/u/ffirg)\
**Post date:** [October 23, 2020, 6:44pm UTC](https://forum.ansible.com/t/command-not-found-but-module-is-installed/34074/18 "2020-10-23T18:44:41Z")

</div>

Hummm. I suggest you try the same mechanism with 1) a different module from the same collection and 2) a different collection

---

<div class="post-metadata">

**Author:** ![Fiend\_Busa](https://avatars.discourse-cdn.com/v4/letter/f/5fc32e/32.png) [@Fiend\_Busa](https://forum.ansible.com/u/Fiend_Busa)\
**Post date:** [October 23, 2020, 7:02pm UTC](https://forum.ansible.com/t/command-not-found-but-module-is-installed/34074/19 "2020-10-23T19:02:58Z")

</div>

Will do! Btw I do have a cisco asa collection which I installed locally from the command line on the server with galaxy-install. That one is working great via AWX.
