# imported module support code does not exist at /usr/lib/python2.6/site-packages/ansible/module\_utils/f5.py

**URL:** <https://forum.ansible.com/t/imported-module-support-code-does-not-exist-at-usr-lib-python2-6-site-packages-ansible-module-utils-f5-py/19681>\
**Category:** Ansible Project\
**Created:** [November 3, 2015, 10:29am UTC](https://forum.ansible.com/t/imported-module-support-code-does-not-exist-at-usr-lib-python2-6-site-packages-ansible-module-utils-f5-py/19681 "2015-11-03T10:29:34Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Amir\_Luzon](https://avatars.discourse-cdn.com/v4/letter/a/9d8465/32.png) [@Amir\_Luzon](https://forum.ansible.com/u/Amir_Luzon)\
**Post date:** [November 3, 2015, 10:29am UTC](https://forum.ansible.com/t/imported-module-support-code-does-not-exist-at-usr-lib-python2-6-site-packages-ansible-module-utils-f5-py/19681/1 "2015-11-03T10:29:34Z")

</div>

Hi guys,

We have Ansible 1.9.1.

I’m working on integration with F5 VIPs using the “bigip” modules supplied with Ansible installation (bigip\_pool\_member). At first i tried to use it and received errors like: “unsupported parameter for module: session\_state” which is state to exist from Ansible version 2.0.

Since we do not want to upgrade yet i downloaded the new modules from [https://github.com/ansible/ansible-modules-extras/tree/devel/network/f5](https://github.com/ansible/ansible-modules-extras/tree/devel/network/f5) and put them in our custom modules library.

So now i do not get the “unsupported parameter for module: session\_state” error but i do get the following error:

fatal: [localhost] =\> imported module support code does not exist at /usr/lib/python2.6/site-packages/ansible/module\_utils/f5.py

any ideas how i can overcome this (besides just coping that file there)?

thanks

---

<div class="post-metadata">

**Author:** ![Brian\_Coca](https://avatars.discourse-cdn.com/v4/letter/b/6de8d8/32.png) [@Brian\_Coca](https://forum.ansible.com/u/Brian_Coca)\
**Post date:** [November 3, 2015, 1:15pm UTC](https://forum.ansible.com/t/imported-module-support-code-does-not-exist-at-usr-lib-python2-6-site-packages-ansible-module-utils-f5-py/19681/2 "2015-11-03T13:15:57Z")

</div>

those modules rely on features only present in 2.0

---

<div class="post-metadata">

**Author:** ![Amir\_Luzon](https://avatars.discourse-cdn.com/v4/letter/a/9d8465/32.png) [@Amir\_Luzon](https://forum.ansible.com/u/Amir_Luzon)\
**Post date:** [November 3, 2015, 1:23pm UTC](https://forum.ansible.com/t/imported-module-support-code-does-not-exist-at-usr-lib-python2-6-site-packages-ansible-module-utils-f5-py/19681/3 "2015-11-03T13:23:47Z")

</div>

Found a way to overcome this.

Basically i just copy the F5.py and change the import in the module.

Copy Task

- name: Upload python f5 support module  
copy: src=library/linux/f5/f5.py dest=/tmp/f5.py

within bigip\_pool\_member.py:

import sys  
sys.path.append(‘/tmp’)  
from f5 import \*
