# community.general.ssh\_config: ModuleNotFoundError: No module named 'storm'

**URL:** <https://forum.ansible.com/t/community-general-ssh-config-modulenotfounderror-no-module-named-storm/35001>\
**Category:** Ansible Project\
**Created:** [April 16, 2021, 12:42pm UTC](https://forum.ansible.com/t/community-general-ssh-config-modulenotfounderror-no-module-named-storm/35001 "2021-04-16T12:42:30Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Amedee\_Van\_Gasse](https://avatars.discourse-cdn.com/v4/letter/a/71e660/32.png) [@Amedee\_Van\_Gasse](https://forum.ansible.com/u/Amedee_Van_Gasse)\
**Post date:** [April 16, 2021, 12:42pm UTC](https://forum.ansible.com/t/community-general-ssh-config-modulenotfounderror-no-module-named-storm/35001/1 "2021-04-16T12:42:30Z")

</div>

I’m doing this:

- name: Add Bitbucket in the SSH configuration  
community.general.ssh\_config:  
user: “{{ jenkins\_user }}”  
host: bitbucket  
remote\_user: git  
hostname: “{{ bitbucket\_hostname }}”  
port: ‘7999’  
identity\_file: “/home/{{ jenkins\_user }}/.ssh/{{ ssh\_private\_key }}”  
state: present

I get this error:

amazon-ebs: TASK [Add Bitbucket in the SSH configuration] \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*  
amazon-ebs: Friday 16 April 2021 14:35:03 +0200 (0:00:00.599) 0:17:50.265 \*\*\*\*\*\*\*\*\*\*  
amazon-ebs: An exception occurred during task execution. To see the full traceback, use -vvv. The error was: ModuleNotFoundError: No module named ‘storm’  
amazon-ebs: fatal: [default]: FAILED! =\> {“changed”: false, “msg”: “Failed to import the required Python library (stormssh) on ip-172-31-4-198’s Python /usr/bin/python3. Please read the module documentation and install it in the appropriate location. If the required library is installed, but Ansible is using the wrong Python interpreter, please consult the documentation on ansible\_python\_interpreter”}

I already did

pip install storm

---

<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:** [April 16, 2021, 1:23pm UTC](https://forum.ansible.com/t/community-general-ssh-config-modulenotfounderror-no-module-named-storm/35001/2 "2021-04-16T13:23:17Z")

</div>

Can you please check if Python used by Ansible is same as pip environment?

---

<div class="post-metadata">

**Author:** ![Komal\_Suthar](https://avatars.discourse-cdn.com/v4/letter/k/919ad9/32.png) [@Komal\_Suthar](https://forum.ansible.com/u/Komal_Suthar)\
**Post date:** [April 17, 2021, 4:45am UTC](https://forum.ansible.com/t/community-general-ssh-config-modulenotfounderror-no-module-named-storm/35001/3 "2021-04-17T04:45:41Z")

</div>

As you are having python version 3 so try to install using pip3 install storm.  
Well the error says that u are using storm as a module but in ansible there’s no such.

---

<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:** [April 17, 2021, 4:55am UTC](https://forum.ansible.com/t/community-general-ssh-config-modulenotfounderror-no-module-named-storm/35001/4 "2021-04-17T04:55:08Z")

</div>

Btw, the package name is “stormssh” not “storm”

Storm - Storm is an Object Relational Mapper for Python developed at Canonical.  
Stormssh - Management commands to ssh config files.

---

<div class="post-metadata">

**Author:** ![Amedee\_Van\_Gasse](https://avatars.discourse-cdn.com/v4/letter/a/71e660/32.png) [@Amedee\_Van\_Gasse](https://forum.ansible.com/u/Amedee_Van_Gasse)\
**Post date:** [April 18, 2021, 10:40am UTC](https://forum.ansible.com/t/community-general-ssh-config-modulenotfounderror-no-module-named-storm/35001/5 "2021-04-18T10:40:58Z")

</div>

Also asked on Stack Overflow and the answer there came on Friday afternoon.

The answer is:  
Do pip install stormssh on the remote machine just before doing the ssh config.

However for some reason the ssh config file was never written so in the end I gave up and I just hard linked my key file to id\_rsa, which is one of the default filenames that ssh will automatically try
