bigip_pool module not found

42 views
Skip to first unread message

Oğuz Yarımtepe

unread,
Dec 13, 2016, 8:35:53 AM12/13/16
to Ansible Project
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?

Tim

unread,
Dec 14, 2016, 7:51:39 PM12/14/16
to ansible...@googlegroups.com
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

--
You received this message because you are subscribed to the Google Groups "Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ansible-project+unsubscribe@googlegroups.com.
To post to this group, send email to ansible-project@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/f1309f7f-d1c2-4383-86c4-2f6e3951d118%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Oğuz Yarımtepe

unread,
Dec 14, 2016, 8:00:23 PM12/14/16
to ansible...@googlegroups.com
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

--
You received this message because you are subscribed to a topic in the Google Groups "Ansible Project" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/ansible-project/tQShUC5YXRM/unsubscribe.
To unsubscribe from this group and all its topics, send an email to ansible-project+unsubscribe@googlegroups.com.

To post to this group, send email to ansible-project@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.



--
Oğuz Yarımtepe
http://about.me/oguzy

Tim

unread,
Dec 14, 2016, 8:10:02 PM12/14/16
to ansible...@googlegroups.com
What is the full path to your venv python interpreter?

Oğuz Yarımtepe

unread,
Dec 14, 2016, 8:12:06 PM12/14/16
to ansible...@googlegroups.com
/Users/my_username/git/ansible-playbooks/venv/bin/python


For more options, visit https://groups.google.com/d/optout.

Tim

unread,
Dec 14, 2016, 8:15:51 PM12/14/16
to ansible...@googlegroups.com
with your venv activated, what is the output of ansible --version ?

Oğuz Yarımtepe

unread,
Dec 14, 2016, 8:17:32 PM12/14/16
to ansible...@googlegroups.com
(venv) ➜  ansible-playbooks git:(master) ✗ ansible --version
ansible 2.2.0.0
  config file =
  configured module search path = Default w/o overrides


For more options, visit https://groups.google.com/d/optout.

Oğuz Yarımtepe

unread,
Dec 15, 2016, 12:11:48 PM12/15/16
to ansible...@googlegroups.com
Any more comment?

Tim

unread,
Dec 15, 2016, 2:00:29 PM12/15/16
to ansible...@googlegroups.com
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?

Oğuz Yarımtepe

unread,
Dec 15, 2016, 2:19:37 PM12/15/16
to ansible...@googlegroups.com
I am using ansible core modules and they work. Using it at macosx, installed via pip on virtualenv. 

Any more comment?

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

To unsubscribe from this group and stop receiving emails from it, send an email to ansible-proje...@googlegroups.com.


To post to this group, send email to ansible...@googlegroups.com.








--


You received this message because you are subscribed to a topic in the Google Groups "Ansible Project" group.


To unsubscribe from this topic, visit https://groups.google.com/d/topic/ansible-project/tQShUC5YXRM/unsubscribe.


To unsubscribe from this group and all its topics, send an email to ansible-proje...@googlegroups.com.


To post to this group, send email to ansible...@googlegroups.com.



--
Oğuz Yarımtepe
http://about.me/oguzy










--


You received this message because you are subscribed to the Google Groups "Ansible Project" group.


To unsubscribe from this group and stop receiving emails from it, send an email to ansible-proje...@googlegroups.com.


To post to this group, send email to ansible...@googlegroups.com.








--


You received this message because you are subscribed to a topic in the Google Groups "Ansible Project" group.


To unsubscribe from this topic, visit https://groups.google.com/d/topic/ansible-project/tQShUC5YXRM/unsubscribe.


To unsubscribe from this group and all its topics, send an email to ansible-proje...@googlegroups.com.


To post to this group, send email to ansible...@googlegroups.com.



--
Oğuz Yarımtepe
http://about.me/oguzy










--


You received this message because you are subscribed to the Google Groups "Ansible Project" group.


To unsubscribe from this group and stop receiving emails from it, send an email to ansible-proje...@googlegroups.com.


To post to this group, send email to ansible...@googlegroups.com.








--


You received this message because you are subscribed to a topic in the Google Groups "Ansible Project" group.


To unsubscribe from this topic, visit https://groups.google.com/d/topic/ansible-project/tQShUC5YXRM/unsubscribe.


To unsubscribe from this group and all its topics, send an email to ansible-proje...@googlegroups.com.


To post to this group, send email to ansible...@googlegroups.com.



--
Oğuz Yarımtepe
http://about.me/oguzy





--
Oğuz Yarımtepe
http://about.me/oguzy










--


You received this message because you are subscribed to the Google Groups "Ansible Project" group.


To unsubscribe from this group and stop receiving emails from it, send an email to ansible-proje...@googlegroups.com.


To post to this group, send email to ansible...@googlegroups.com.
--


You received this message because you are subscribed to a topic in the Google Groups "Ansible Project" group.


To unsubscribe from this topic, visit https://groups.google.com/d/topic/ansible-project/tQShUC5YXRM/unsubscribe.


To unsubscribe from this group and all its topics, send an email to ansible-proje...@googlegroups.com.


To post to this group, send email to ansible...@googlegroups.com.


To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/CAB0Zv8jd-1q9v982pW-Oz_i4i2GHGm%2BZ4411EkjrEavqFdYb-Q%40mail.gmail.com.
Reply all
Reply to author
Forward
0 new messages