Hummm. I suggest you try the same mechanism with 1) a different module from the same collection and 2) a different collection
On Fri, 23 Oct 2020 at 17:56, Fiend Busa <[email protected]> wrote: > 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 > > --- > > collections: > > > - name: arubanetworks.aos_switch > > source: https://galaxy.ansible.com > > Then I have a playbook: > > > --- > > - hosts: all > > gather_facts: false > > connection: localhost > > > > collections: > > - arubanetworks.aos_switch > > > > tasks: > > - name: Execute show run on the switch > > arubanetworks.aos_switch.arubaoss_command: > > commands: ['sh run'] > > On Friday, October 23, 2020 at 12:25:21 PM UTC-4 Fiend Busa wrote: > >> :O >> >> Sorry haha, I will try that, fingers crossed! >> >> On Friday, October 23, 2020 at 11:15:38 AM UTC-4 [email protected] >> wrote: >> >>> 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 You >>> might need to setup the creds for Galaxy in AWX as well so it can >>> authenticate and do the install. >>> >>> On Friday, 23 October 2020 at 14:57:43 UTC+1 [email protected] wrote: >>> >>>> Im running ansible through AWX if that makes a difference. >>>> >>>> On Friday, October 23, 2020 at 9:56:21 AM UTC-4 Fiend Busa wrote: >>>> >>>>> 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 >>>>> On Thursday, October 22, 2020 at 4:09:45 PM UTC-4 [email protected] >>>>> wrote: >>>>> >>>>>> Check file permissions? >>>>>> Also try ansible-doc -l | grep aruba to see if it can find those >>>>>> modules >>>>>> >>>>>> On Thu, 22 Oct 2020 at 18:10, Fiend Busa <[email protected]> wrote: >>>>>> >>>>>>> Hey, >>>>>>> >>>>>>> Mine are all under: ~/.ansible/collections/ansible_collections >>>>>>> >>>>>>> ls -all in this directory gives me >>>>>>> >>>>>>> ansible >>>>>>> arubanetworks >>>>>>> check_point >>>>>>> cisco >>>>>>> community >>>>>>> fortinet >>>>>>> >>>>>>> On Thursday, October 22, 2020 at 10:52:22 AM UTC-4 >>>>>>> [email protected] wrote: >>>>>>> >>>>>>>> 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 >>>>>>>> >>>>>>>> On Thu, 22 Oct 2020 at 15:10, Fiend Busa <[email protected]> wrote: >>>>>>>> >>>>>>>>> >>>>>>>>> I can see >>>>>>>>> ~./.ansible/collections/arubanetworks/aos_switch/plugins/modules/arubaoss_command.py >>>>>>>>> On Thursday, October 22, 2020 at 9:48:23 AM UTC-4 Fiend Busa wrote: >>>>>>>>> >>>>>>>>>> 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*/ >>>>>>>>>> On Wednesday, October 21, 2020 at 4:16:08 PM UTC-4 >>>>>>>>>> [email protected] wrote: >>>>>>>>>> >>>>>>>>>>> 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? >>>>>>>>>>> >>>>>>>>>>> On Wed, 21 Oct 2020 at 21:10, Fiend Busa <[email protected]> >>>>>>>>>>> wrote: >>>>>>>>>>> >>>>>>>>>>>> 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 >>>>>>>>>>>> >>>>>>>>>>>> >>>>>>>>>>>> On Wednesday, October 21, 2020 at 2:57:12 PM UTC-4 >>>>>>>>>>>> [email protected] wrote: >>>>>>>>>>>> >>>>>>>>>>>>> what happens when you use the FQCN (fully qualified collection >>>>>>>>>>>>> name) as part of the task? >>>>>>>>>>>>> arubanetworks.aos_switch.arubaoss_command: >>>>>>>>>>>>> >>>>>>>>>>>>> On Wednesday, 21 October 2020 at 15:31:07 UTC+1 >>>>>>>>>>>>> [email protected] wrote: >>>>>>>>>>>>> >>>>>>>>>>>>>> --- >>>>>>>>>>>>>> - hosts: all >>>>>>>>>>>>>> gather_facts: false >>>>>>>>>>>>>> connection: local >>>>>>>>>>>>>> become: yes >>>>>>>>>>>>>> become_method: enable >>>>>>>>>>>>>> >>>>>>>>>>>>>> collections: >>>>>>>>>>>>>> - arubanetworks.aos_switch >>>>>>>>>>>>>> >>>>>>>>>>>>>> tasks: >>>>>>>>>>>>>> - name: Show running configuration >>>>>>>>>>>>>> arubaoss_command: >>>>>>>>>>>>>> commands: ['show run'] >>>>>>>>>>>>>> >>>>>>>>>>>>>> ERROR! couldn't resolve module/action 'arubaoss_command'. >>>>>>>>>>>>>> This often indicates a misspelling, missing collection, or >>>>>>>>>>>>>> incorrect module >>>>>>>>>>>>>> path. >>>>>>>>>>>>>> >>>>>>>>>>>>>> Server where ansible is installed tells me its already >>>>>>>>>>>>>> installed >>>>>>>>>>>>>> https://galaxy.ansible.com/arubanetworks/aos_switch >>>>>>>>>>>>>> >>>>>>>>>>>>> -- >>>>>>>>>>>> You received this message because you are subscribed to a topic >>>>>>>>>>>> in the Google Groups "Ansible Project" group. >>>>>>>>>>>> To unsubscribe from this topic, visit >>>>>>>>>>>> https://groups.google.com/d/topic/ansible-project/3vYUd0vit2Q/unsubscribe >>>>>>>>>>>> . >>>>>>>>>>>> To unsubscribe from this group and all its topics, send an >>>>>>>>>>>> email to [email protected]. >>>>>>>>>>> >>>>>>>>>>> >>>>>>>>>>>> To view this discussion on the web visit >>>>>>>>>>>> https://groups.google.com/d/msgid/ansible-project/d6965e56-6a75-41d3-838b-88f8418f4d7dn%40googlegroups.com >>>>>>>>>>>> <https://groups.google.com/d/msgid/ansible-project/d6965e56-6a75-41d3-838b-88f8418f4d7dn%40googlegroups.com?utm_medium=email&utm_source=footer> >>>>>>>>>>>> . >>>>>>>>>>>> >>>>>>>>>>> -- >>>>>>>>> You received this message because you are subscribed to a topic in >>>>>>>>> the Google Groups "Ansible Project" group. >>>>>>>>> To unsubscribe from this topic, visit >>>>>>>>> https://groups.google.com/d/topic/ansible-project/3vYUd0vit2Q/unsubscribe >>>>>>>>> . >>>>>>>>> To unsubscribe from this group and all its topics, send an email >>>>>>>>> to [email protected]. >>>>>>>>> >>>>>>>> To view this discussion on the web visit >>>>>>>>> https://groups.google.com/d/msgid/ansible-project/198d5361-29cb-435b-949a-62e3f07c4e58n%40googlegroups.com >>>>>>>>> <https://groups.google.com/d/msgid/ansible-project/198d5361-29cb-435b-949a-62e3f07c4e58n%40googlegroups.com?utm_medium=email&utm_source=footer> >>>>>>>>> . >>>>>>>>> >>>>>>>> -- >>>>>>> You received this message because you are subscribed to a topic in >>>>>>> the Google Groups "Ansible Project" group. >>>>>>> To unsubscribe from this topic, visit >>>>>>> https://groups.google.com/d/topic/ansible-project/3vYUd0vit2Q/unsubscribe >>>>>>> . >>>>>>> To unsubscribe from this group and all its topics, send an email to >>>>>>> [email protected]. >>>>>>> >>>>>> To view this discussion on the web visit >>>>>>> https://groups.google.com/d/msgid/ansible-project/a8fdaaa3-9c70-4f98-bf2a-f397d88ac4ffn%40googlegroups.com >>>>>>> <https://groups.google.com/d/msgid/ansible-project/a8fdaaa3-9c70-4f98-bf2a-f397d88ac4ffn%40googlegroups.com?utm_medium=email&utm_source=footer> >>>>>>> . >>>>>>> >>>>>> -- > You received this message because you are subscribed to a topic in the > Google Groups "Ansible Project" group. > To unsubscribe from this topic, visit > https://groups.google.com/d/topic/ansible-project/3vYUd0vit2Q/unsubscribe. > To unsubscribe from this group and all its topics, send an email to > [email protected]. > To view this discussion on the web visit > https://groups.google.com/d/msgid/ansible-project/95766236-7a8b-42c3-af92-ab219ba995d6n%40googlegroups.com > <https://groups.google.com/d/msgid/ansible-project/95766236-7a8b-42c3-af92-ab219ba995d6n%40googlegroups.com?utm_medium=email&utm_source=footer> > . > -- You received this message because you are subscribed to the Google Groups "Ansible Project" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/CAJ3TUwgiOeYY9bJVnPxn-H54D4U5UQ6NH_fGCUTsPuGHV3ZEpA%40mail.gmail.com.
