Hi Everybody,
I try to run playbook with ansible module bigip_pool_member.py to add node in existing pool cause the the python bigsuds module is required.
I did other playbooks to add node, pool or virtual server they work well.
Somebody met this problem ?
Thanks in advance for your help.
My playbook :
* name: Node jeff
hosts: F5_DIJ
connection: local
tasks:
- name: Add a new node
bigip_pool_member:
server: "{{ ansible_host }}"
username: "{{ username }}"
password: "{{ password }}"
validate_certs: no
state: present
pool: my-pool
partition: Common
host: 3.3.3.3
port: 80
description: web server
delegate_to: localhost
Error message :
ansible-playbook F5-ajout-pool-menber-task.yaml
PLAY [Node jeff] ***********************************************************************************************************
TASK [Gathering Facts] *****************************************************************************************************
ok: [lb-xx.yy
TASK [Add a new node] ******************************************************************************************************
fatal: [lb-xx.yy -> localhost]: FAILED! => {"changed": false, "msg": "the python bigsuds module is required"}
to retry, use: --limit @/root/ansible/playbooks/F5_playbooks/F5-ajout-pool-menber-task.retry
PLAY RECAP *****************************************************************************************************************
lb-xx.yy : ok=1 changed=0 unreachable=0 failed=1
Bigsuds installation :
[root@152101lmof ~] sudo pip install --upgrade bigsuds
Requirement already up-to-date: bigsuds in /usr/lib/python2.7/site-packages
Requirement already up-to-date: suds-jurko>=0.6 in /usr/lib/python2.7/site-packages (from bigsuds)