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-d1c2-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 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/CAB0Zv8gp%2BGWkr4E%3DfPpUV-e%2BVdPThU30NZ5Qa0jYano321oBKw%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
