You haven't done anything to tell the play/task to use that collection.

The easiest way is instead of just using `ibm_svcinfo_command:` you use
`ibm.spectrum_virtualize.ibm_svcinfo_command:` in your task.

On Fri, Apr 16, 2021 at 9:25 AM miqdad patwa <[email protected]> wrote:

> Hello Brian,
>
> i did the same and installed using the same command.
>
> ibm]# ansible-galaxy collection install
> /tmp/ibm-spectrum_virtualize-1.4.0.tar.gz -p /usr/share/ansible/collections/
>
> [WARNING]: Collection at
> '/usr/share/ansible/collections/ansible_collections/ibm/plugins' does not
> have a MANIFEST.json file, cannot detect version.
>
> [WARNING]: Collection at
> '/usr/share/ansible/collections/ansible_collections/ibm/roles' does not
> have a MANIFEST.json file, cannot detect version.
>
> [WARNING]: Collection at
> '/usr/share/ansible/collections/ansible_collections/ibm/tests' does not
> have a MANIFEST.json file, cannot detect version.
>
> [WARNING]: Collection at
> '/usr/share/ansible/collections/ansible_collections/ibm/docs' does not have
> a MANIFEST.json file, cannot detect version.
>
> [WARNING]: Collection at
> '/usr/share/ansible/collections/ansible_collections/ibm/playbooks' does not
> have a MANIFEST.json file, cannot detect version.
>
> Process install dependency map
>
> Starting collection install process
>
> Installing 'ibm.spectrum_virtualize:1.4.0' to
> '/usr/share/ansible/collections/ansible_collections/ibm/spectrum_virtualize'
>
> [root@ansible-kartel ibm]# cd
> /usr/share/ansible/collections/ansible_collections/ibm/spectrum_virtualize
>
> and also i installed the
> modules:/usr/lib/python2.7/site-packages/ansible/modules/storage/ibm
>
> This is output of ansible version:
>
> ansible 2.9.14
>
> config file = /etc/ansible/ansible.cfg
>
> configured module search path = [u'/root/.ansible/plugins/modules',
> u'/usr/share/ansible/plugins/modules']
>
> ansible python module location = /usr/lib/python2.7/site-packages/ansible
>
> executable location = /usr/bin/ansible
>
> python version = 2.7.5 (default, May 3 2017, 07:55:04) [GCC 4.8.5 20150623
> (Red Hat 4.8.5-14)]
>
> Not sure where its looking for the modules?
>
> Here is my playbook in which i am using ibm_svc module
>
> [ support]# more v7ktest.yml
> ---
> - name: Using the IBM Spectrum Virtualize collection to create an FC host
> hosts: localhost
> gather_facts: no
> connection: local
> vars:
> clustername: **************
> domain:
> username: superuser
> password: ************
> log_path: tmp/playbook.debug
> tasks:
> - name: Run CLI commands
> register: results
> ibm_svcinfo_command:
> command: "svcinfo lssystem"
> clustername: "{{ clustername }}"
> username: "{{ username }}"
> password: "{{ password }}"
> log_path: /tmp/test.debug
>
>
> On Fri, Apr 16, 2021 at 4:57 PM Brian Coca <[email protected]> wrote:
>
>> `ansible galaxy collection install ....` should take care of the
>> installation for you, do not move the specific modules to a location
>> as they require other parts of the collection, install the collection
>> as a whole.
>>
>>
>>
>>
>>
>> --
>> ----------
>> Brian Coca
>>
>> --
>> 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/CACVha7cxCpCjdyeEk4Y6sEpw6o4CinCtu9myho49OLV%2BvK-FqA%40mail.gmail.com
>> .
>>
> --
> 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/CA%2BC6MFWMtSn584PusEunYOTmj3x-h5pPPiBL1Zc-XMpMi%3D4oiA%40mail.gmail.com
> <https://groups.google.com/d/msgid/ansible-project/CA%2BC6MFWMtSn584PusEunYOTmj3x-h5pPPiBL1Zc-XMpMi%3D4oiA%40mail.gmail.com?utm_medium=email&utm_source=footer>
> .
>


-- 
Matt Martz
@sivel
sivel.net

-- 
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/CAD8N0v8mdwrRMug9zE14LXT_3%2Bk5JAc80m3d9R%3DXxpEYbO%3Dw3A%40mail.gmail.com.

Reply via email to