lookup_plugins config does not seem to work

190 views
Skip to first unread message

Barry Kaplan

unread,
Jun 29, 2015, 12:33:00 PM6/29/15
to ansible...@googlegroups.com
I have been using filter plugins with the ansible.cfg setting:

filter_plugins = plugins/filter_plugins

This is and has been working great. But now when I add:

lookup_plugins = plugins/lookup_plugins

No lookup plugins are not found. The best I can tell the lookup is by filename (unlike the filters).

Is this a new bug, or are lookups different from filters in some way?

Barry Kaplan

unread,
Jun 29, 2015, 9:57:00 PM6/29/15
to ansible...@googlegroups.com
Sigh, user error. For reasons I will never know I named my plugin with the .yml extension instead of .py.

But, on the upside, I got to find out just how incredibly well the the Intellij debugger works with python. 

For those interested:

1) Create a run configuration. In my case it was like:

script: /usr/local/bin/ansible-playbook
script params: -i inventory/aws/ops playbooks/provision/aws/prometheus.yml -u ubuntu
working dir: /Users/bkaplan/si/ops/ansible

2) open the ansible file you want to debug in idea. You can do this however you want. I create use the Tools/Create Command  Line Laucher menu to create an 'idea' script in /usr/local/bin. Then just use $ idea <myfile.py> to open the file in the running Intellij

3) Set the breakpoint in the opened file

4) Start the run configuration in debug mode. Idea will find all the other files in the stack as well.

If you never used idea's debugger you will be blown away. Its by far the best debugger I have ever used in my 30 years of software development. 

After having use 'module.fail_json' for debugging these last weeks I will no longer dread debugging modules.

Reply all
Reply to author
Forward
0 new messages