# F5 bigip\_pool\_member Module bigsuds not found

**URL:** <https://forum.ansible.com/t/f5-bigip-pool-member-module-bigsuds-not-found/20320>\
**Category:** Ansible Project\
**Created:** [January 22, 2016, 5:20pm UTC](https://forum.ansible.com/t/f5-bigip-pool-member-module-bigsuds-not-found/20320 "2016-01-22T17:20:00Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jason3](https://avatars.discourse-cdn.com/v4/letter/j/f9ae1b/32.png) [@Jason3](https://forum.ansible.com/u/Jason3)\
**Post date:** [January 22, 2016, 5:20pm UTC](https://forum.ansible.com/t/f5-bigip-pool-member-module-bigsuds-not-found/20320/1 "2016-01-22T17:20:00Z")

</div>

Hello Ansible Community,

Wondering if anyone familiar with this module could lend a hand. I’m attempting to use the bigip\_pool\_member module to force a node offline in an F5 LTM pool. However i’m getting the error “the python bigsuds module is required”. I’ve verified that bigsuds is installed on the target F5.

[xxxxx@F5-Test:Active:Standalone] ~ # python  
Python 2.4.3 (#1, Apr 22 2015, 16:27:42)  
[GCC 4.1.2 20080704 (Red Hat 4.1.2-46)] on linux2  
Type “help”, “copyright”, “credits” or “license” for more information.

> > > import bigsuds  
> > > b = bigsuds.BIGIP(  
> > > … hostname = ‘xx.xx.xx.xx’,  
> > > … username = ‘xxxxx’,  
> > > … password = ‘xxxxx’)  
> > > b.LocalLB.Pool.get\_list()  
> > > [‘/Common/swp\_http’, ‘/Common/http’]

Here is the example playbook i’m trying to use:

[http://pastebin.com/wkqw5K86](http://pastebin.com/wkqw5K86)

- hosts: all

tasks:

- name: set node offline  
local\_action: \>  
bigip\_pool\_member  
server=192.168.0.1  
user=ausername  
password=notmypassword  
state=present  
session\_state=disabled  
monitor\_state=disabled  
pool=http  
partition=common  
host=“{{ ansible\_default\_ipv4[‘address’] }}”  
port=80

Any insight/assistance would be greatly appreciated.

-Jason

---

<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:** [January 22, 2016, 5:27pm UTC](https://forum.ansible.com/t/f5-bigip-pool-member-module-bigsuds-not-found/20320/2 "2016-01-22T17:27:37Z")

</div>

You are running via a local\_action, which means that `bigip_pool_member` is executing on the ansible control machine, not the F5. As such you will need to install bigsuds on the ansible control machine.

---

<div class="post-metadata">

**Author:** ![Jason3](https://avatars.discourse-cdn.com/v4/letter/j/f9ae1b/32.png) [@Jason3](https://forum.ansible.com/u/Jason3)\
**Post date:** [January 22, 2016, 5:53pm UTC](https://forum.ansible.com/t/f5-bigip-pool-member-module-bigsuds-not-found/20320/3 "2016-01-22T17:53:07Z")

</div>

Oh Duh. Thanks for the quick response! That was indeed the problem. I assume this uses port 80 or 443 instead of ssh then from the ansible server to the F5?

---

<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:** [January 22, 2016, 5:55pm UTC](https://forum.ansible.com/t/f5-bigip-pool-member-module-bigsuds-not-found/20320/4 "2016-01-22T17:55:20Z")

</div>

That is correct. The bigsuds module communicates with an F5 via the SOAP API.

---

<div class="post-metadata">

**Author:** ![Bruno\_Calcado](https://avatars.discourse-cdn.com/v4/letter/b/9de0a6/32.png) [@Bruno\_Calcado](https://forum.ansible.com/u/Bruno_Calcado)\
**Post date:** [March 14, 2017, 10:58am UTC](https://forum.ansible.com/t/f5-bigip-pool-member-module-bigsuds-not-found/20320/5 "2017-03-14T10:58:18Z")

</div>

Hi Guys,

I’m having the same problem. F5 version: 12

> $ ansible --version  
> ansible 2.2.1.0  
> config file = ./ansible.cfg  
> configured module search path = [‘/usr/local/lib/PYTHON\_VERSION/site-packages/ansible/modules/extras/network/f5/’]

fatal: [F5-04]: FAILED! =\> {  
“changed”: false,  
“failed”: true,  
“invocation”: {  
“module\_args”: {  
“description”: null,  
“host”: null,  
“lb\_method”: “round\_robin”,  
“monitor\_type”: null,  
“monitors”: null,  
“name”: “web-bruno”,  
“partition”: “Common”,  
“password”: “VALUE\_SPECIFIED\_IN\_NO\_LOG\_PARAMETER”,  
“port”: null,  
“quorum”: null,  
“reselect\_tries”: null,  
“server”: “F5-04”,  
“server\_port”: 443,  
“service\_down\_action”: null,  
“slow\_ramp\_time”: 120,  
“state”: “present”,  
“user”: “admin\*\*\*\*\*\*\*\*”,  
“validate\_certs”: false  
},  
“module\_name”: “bigip\_pool”  
},  
" **msg": “the python bigsuds module is required”**  
}

But I have the bigsuds in my Ansible machine.

[ansible@10 ~]$ python  
Python 2.6.6 (r266:84292, Aug 9 2016, 06:11:56)  
[GCC 4.4.7 20120313 (Red Hat 4.4.7-17)] on linux2  
Type “help”, “copyright”, “credits” or “license” for more information.

> > > import bigsuds  
> > > b=bigsuds.BIGIP(hostname=‘x.x.x.x’, username=‘ **', password= '** ’)  
> > > b.LocalLB.Pool.get\_list()  
> > > [‘/Common/POOL1’, ‘/Common/POOL2’, ‘/Common/POOL5’,

Could you help me ?  
Thanks in advance.  
Best regards,  
Bruno

---

<div class="post-metadata">

**Author:** ![Tim1](https://avatars.discourse-cdn.com/v4/letter/t/b782af/32.png) [@Tim1](https://forum.ansible.com/u/Tim1)\
**Post date:** [March 15, 2017, 2:27pm UTC](https://forum.ansible.com/t/f5-bigip-pool-member-module-bigsuds-not-found/20320/6 "2017-03-15T14:27:53Z")

</div>

This could happen for a number a reasons but most of the time its from

- Not using local\_action or delegate\_to: localhost in the task
- Running ansible in a virtualenv and not ensuring that bigsuds is installed in the venv and the python interpreter in the localhost host vars points to the venv python

Do either of the above apply?

-tim
