with your venv activated, what is the output of ansible --version ? On Wed, Dec 14, 2016 at 5:11 PM, Oğuz Yarımtepe <[email protected]> wrote:
> /Users/my_username/git/ansible-playbooks/venv/bin/python > > On Thu, Dec 15, 2016 at 3:09 AM, Tim <[email protected]> wrote: > >> What is the full path to your venv python interpreter? >> >> On Wed, Dec 14, 2016 at 5:00 PM, Oğuz Yarımtepe <[email protected]> >> wrote: >> >>> 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=/pa >>> th/to/ansible-playbooks/venv/bin/python >>> >>> On Thu, Dec 15, 2016 at 2:51 AM, Tim <[email protected]> wrote: >>> >>>> 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 >>>> >>>> On Tue, Dec 13, 2016 at 5:35 AM, Oğuz Yarımtepe < >>>> [email protected]> wrote: >>>> >>>>> 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? >>>>> >>>>> -- >>>>> 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 [email protected]. >>>>> To post to this group, send email to [email protected]. >>>>> To view this discussion on the web visit >>>>> https://groups.google.com/d/msgid/ansible-project/f1309f7f-d >>>>> 1c2-4383-86c4-2f6e3951d118%40googlegroups.com >>>>> <https://groups.google.com/d/msgid/ansible-project/f1309f7f-d1c2-4383-86c4-2f6e3951d118%40googlegroups.com?utm_medium=email&utm_source=footer> >>>>> . >>>>> For more options, visit https://groups.google.com/d/optout. >>>>> >>>> >>>> -- >>>> 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/to >>>> pic/ansible-project/tQShUC5YXRM/unsubscribe. >>>> To unsubscribe from this group and all its topics, send an email to >>>> [email protected]. >>>> To post to this group, send email to [email protected]. >>>> To view this discussion on the web visit https://groups.google.com/d/ms >>>> gid/ansible-project/CAB0Zv8gp%2BGWkr4E%3DfPpUV-e%2BVdPThU30N >>>> Z5Qa0jYano321oBKw%40mail.gmail.com >>>> <https://groups.google.com/d/msgid/ansible-project/CAB0Zv8gp%2BGWkr4E%3DfPpUV-e%2BVdPThU30NZ5Qa0jYano321oBKw%40mail.gmail.com?utm_medium=email&utm_source=footer> >>>> . >>>> >>>> For more options, visit https://groups.google.com/d/optout. >>>> >>> >>> >>> >>> -- >>> 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 [email protected]. >>> To post to this group, send email to [email protected]. >>> To view this discussion on the web visit https://groups.google.com/d/ms >>> gid/ansible-project/CAKtWOTQvZtMbmB0x6vDVqevsRaZW13ANSax-2aL >>> ho06wpJ4%3D3w%40mail.gmail.com >>> <https://groups.google.com/d/msgid/ansible-project/CAKtWOTQvZtMbmB0x6vDVqevsRaZW13ANSax-2aLho06wpJ4%3D3w%40mail.gmail.com?utm_medium=email&utm_source=footer> >>> . >>> >>> For more options, visit https://groups.google.com/d/optout. >>> >> >> -- >> 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/to >> pic/ansible-project/tQShUC5YXRM/unsubscribe. >> To unsubscribe from this group and all its topics, send an email to >> [email protected]. >> To post to this group, send email to [email protected]. >> To view this discussion on the web visit https://groups.google.com/d/ms >> gid/ansible-project/CAB0Zv8g9N8xLM8w76wkmo6q5UOGEkx7m3jK9B0H >> JKOjROVtjyw%40mail.gmail.com >> <https://groups.google.com/d/msgid/ansible-project/CAB0Zv8g9N8xLM8w76wkmo6q5UOGEkx7m3jK9B0HJKOjROVtjyw%40mail.gmail.com?utm_medium=email&utm_source=footer> >> . >> >> For more options, visit https://groups.google.com/d/optout. >> > > > > -- > 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 [email protected]. > To post to this group, send email to [email protected]. > To view this discussion on the web visit https://groups.google.com/d/ > msgid/ansible-project/CAKtWOTSbxuvdSW0zD4WTxtA8SaHHB > 4bCfq45icYOpK7hoO1P4w%40mail.gmail.com > <https://groups.google.com/d/msgid/ansible-project/CAKtWOTSbxuvdSW0zD4WTxtA8SaHHB4bCfq45icYOpK7hoO1P4w%40mail.gmail.com?utm_medium=email&utm_source=footer> > . > > For more options, visit https://groups.google.com/d/optout. > -- 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 [email protected]. To post to this group, send email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/CAB0Zv8ixQBafEezx6DOreKiYpsZkd2JscU_%3DDJYODbvSK2L9_A%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
