# \- Unable to run the playbook with new modules for IBM V7000 storage boxes

**URL:** <https://forum.ansible.com/t/unable-to-run-the-playbook-with-new-modules-for-ibm-v7000-storage-boxes/35000>\
**Category:** Ansible Project\
**Tags:** ansible-project\
**Created:** [April 16, 2021, 9:22am UTC](https://forum.ansible.com/t/unable-to-run-the-playbook-with-new-modules-for-ibm-v7000-storage-boxes/35000 "2021-04-16T09:22:38Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![miqdad\_patwa](https://avatars.discourse-cdn.com/v4/letter/m/ebca7d/32.png) [@miqdad\_patwa](https://forum.ansible.com/u/miqdad_patwa)\
**Post date:** [April 16, 2021, 9:22am UTC](https://forum.ansible.com/t/unable-to-run-the-playbook-with-new-modules-for-ibm-v7000-storage-boxes/35000/1 "2021-04-16T09:22:38Z")

</div>

Hello Team,

I need to automate my IBM V7000 Storage system and run commands on the same.

On google i found there is a module from Ansible collection:

# Ansible Collection - ibm.spectrum\_virtualize

I downloaded it but i am not sure where to install it. As per the instructions i installed it under python module and module-utils under this path.

/usr/lib/python2.7/site-packages/ansible/modules/storage/ibm where existing packages are kept but still when i run the playbook it gives this error.

**TASK [Run CLI commands] \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\***  
**fatal: [localhost]: FAILED! =\> {“msg”: “Could not find imported module support code for ibm\_svcinfo\_command. Looked for either IBMSVCssh.py or ibm\_svc\_ssh.py”}**

**Can anyone help me to run this playbook and update me where i need to install the python module.?**

---

<div class="post-metadata">

**Author:** ![miqdad\_patwa](https://avatars.discourse-cdn.com/v4/letter/m/ebca7d/32.png) [@miqdad\_patwa](https://forum.ansible.com/u/miqdad_patwa)\
**Post date:** [April 16, 2021, 1:40pm UTC](https://forum.ansible.com/t/unable-to-run-the-playbook-with-new-modules-for-ibm-v7000-storage-boxes/35000/2 "2021-04-16T13:40:20Z")

</div>

Hello Abhijeet,

Can you please help me on this?

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/ansible/original/1X/1882d9a01da5d8996a862359b0913cc568a39b84.svg) [@system](https://forum.ansible.com/u/system)\
**Post date:** [April 16, 2021, 1:56pm UTC](https://forum.ansible.com/t/unable-to-run-the-playbook-with-new-modules-for-ibm-v7000-storage-boxes/35000/3 "2021-04-16T13:56:48Z")

</div>

`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.

---

<div class="post-metadata">

**Author:** ![miqdad\_patwa](https://avatars.discourse-cdn.com/v4/letter/m/ebca7d/32.png) [@miqdad\_patwa](https://forum.ansible.com/u/miqdad_patwa)\
**Post date:** [April 16, 2021, 2:25pm UTC](https://forum.ansible.com/t/unable-to-run-the-playbook-with-new-modules-for-ibm-v7000-storage-boxes/35000/4 "2021-04-16T14:25:15Z")

</div>

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

```auto
[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

```

---

<div class="post-metadata">

**Author:** ![sivel](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/sivel/32/1198_2.png) [@sivel](https://forum.ansible.com/u/sivel)\
**Post date:** [April 16, 2021, 2:32pm UTC](https://forum.ansible.com/t/unable-to-run-the-playbook-with-new-modules-for-ibm-v7000-storage-boxes/35000/5 "2021-04-16T14:32:04Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![miqdad\_patwa](https://avatars.discourse-cdn.com/v4/letter/m/ebca7d/32.png) [@miqdad\_patwa](https://forum.ansible.com/u/miqdad_patwa)\
**Post date:** [April 21, 2021, 1:05pm UTC](https://forum.ansible.com/t/unable-to-run-the-playbook-with-new-modules-for-ibm-v7000-storage-boxes/35000/6 "2021-04-21T13:05:20Z")

</div>

Hello,

> As per the instructions I installed the collection at this path.

[root@ spectrum\_virtualize]# **ansible-config dump | grep COLLECTIONS\_PATH**

COLLECTIONS\_PATHS(/etc/ansible/ansible.cfg) = [u’/usr/share/ansible/collections’]

[root@ansible-kartel spectrum\_virtualize]# pwd

/usr/share/ansible/collections/ibm/spectrum\_virtualize

[root@\*\*\*\*\*\*\*\*spectrum\_virtualize]# ls

docs FILES.json LICENSE MANIFEST.json playbooks plugins [README.md](https://readme.md/) roles tests

[root@ansible-kartel spectrum\_virtualize]#
