bigip_pool module not found

At my virtualenv

Here is my ansible.cfg

[defaults] host_key_checking = False library =/path/to/ansible-playbooks/venv/lib/python2.7/site-packages/ansible/modules

And here is my f5-text.txt

localhost] ansible_connection=local ansible_python_interpreter=/Users/oyarimtepe/git.gittigidiyor/ansible-playbooks/venv/bin/python

and the playbook.yml is

`

  • name: create f5 pool
    hosts: localhost
    connection: local
    roles:
  • remove_node
    `

remove_node is

`

  • name: Remove pool member from pool
    local_action: >
    bigip_pool:
    server: “{{ f5_server }}”
    server_port: {{ f5_server_port }}
    user: “{{ f5_username }}”
    password: “{{ f5_password }}”
    state: “absent”
    name: “{{ f5_pool }}”
    partition: “{{ f5_partition }}”
    host: “{{ ansible_default_ipv4[“address”] }}”
    port: {{ host_port }}
    `

and whenever i run the playbook with
`

ansible-playbook f5-pool/playbook.yml -i f5-test.txt
`

This is the error i got:

fatal: [ansible_connection=local]: FAILED! => {“failed”: true, “msg”: “The module bigip_pool:\n was not found in configured module paths. Additionally, core modules are missing. If this is a checkout, run ‘git submodule update --init --recursive’ to correct this problem.”}

Any idea what the problem is?

Oguz, does your ansible.cfg literally say

library =/path/to/ansible-playbooks/venv/lib/python2.7/site-packages/ansible/modules

Or is that just an example you were providing us? I recon that that path is incorrect, but If you are specifying the ansible_python_interpreter then you shouldn’t even need to include a roles path. What happens if you just remove the ansible.cfg file?

-tim

I removed the ansible.cfg and retried again. Nothing changed.

PLAY [create f5 pool] **********************************************************

TASK [setup] *******************************************************************
ok: [ansible_connection=local]

TASK [remove_node : include_vars] **********************************************
ok: [ansible_connection=local]

TASK [remove_node : Remove pool member from pool] ******************************
fatal: [ansible_connection=local]: FAILED! => {“failed”: true, “msg”: “The module bigip_pool:\n was not found in configured module paths. Additionally, core modules are missing. If this is a checkout, run ‘git submodule update --init --recursive’ to correct this problem.”}
to retry, use: --limit @/path/to/ansible-playbooks/f5-pool/playbook.retry

PLAY RECAP *********************************************************************
ansible_connection=local : ok=2 changed=0 unreachable=0 failed=1

and here is the inventory

[localhost]
ansible_connection=local ansible_python_interpreter=/path/to/ansible-playbooks/venv/bin/python

What is the full path to your venv python interpreter?

/Users/my_username/git/ansible-playbooks/venv/bin/python

with your venv activated, what is the output of ansible --version ?

(venv) ➜ ansible-playbooks git:(master) ✗ ansible --version
ansible 2.2.0.0
config file =
configured module search path = Default w/o overrides

Any more comment?

I’m at a loss as to why it’s not working. The error suggests that ansible, in general, is not installed properly; regardless of the bigip_pool module. Do any other modules work?

I am using ansible core modules and they work. Using it at macosx, installed via pip on virtualenv.