i want to create a lookup plugin for use on windows that does the same as 
the ini lookup but cant find any docs to say how its done or if its 
possible. I tried to make a plugin the same way i would a windows module 
but im greeted with the error 
    "exception": "Traceback (most recent call last):\n  File 
\"/usr/lib/python2.7/site-packages/ansible/executor/task_executor.py\", 
line 138, in run\n    res = self._execute()\n  File 
\"/usr/lib/python2.7/site-packages/ansible/executor/task_executor.py\", 
line 509, in _execute\n    self._task.post_validate(templar=templar)\n  
File \"/usr/lib/python2.7/site-packages/ansible/playbook/task.py\", line 
260, in post_validate\n    super(Task, self).post_validate(templar)\n  File 
\"/usr/lib/python2.7/site-packages/ansible/playbook/base.py\", line 361, in 
post_validate\n    value = templar.template(getattr(self, name))\n  File 
\"/usr/lib/python2.7/site-packages/ansible/template/__init__.py\", line 
523, in template\n    disable_lookups=disable_lookups,\n  File 
\"/usr/lib/python2.7/site-packages/ansible/template/__init__.py\", line 
479, in template\n    disable_lookups=disable_lookups,\n  File 
\"/usr/lib/python2.7/site-packages/ansible/template/__init__.py\", line 
722, in do_template\n    res = j2_concat(rf)\n  File \"<template>\", line 
8, in root\n  File \"/usr/lib/python2.7/site-packages/jinja2/runtime.py\", 
line 196, in call\n    return __obj(*args, **kwargs)\n  File 
\"/usr/lib/python2.7/site-packages/ansible/template/__init__.py\", line 
613, in _lookup\n    instance = self._lookup_loader.get(name.lower(), 
loader=self._loader, templar=self)\n  File 
\"/usr/lib/python2.7/site-packages/ansible/plugins/loader.py\", line 381, 
in get\n    obj = getattr(self._module_cache[path], 
self.class_name)\nAttributeError: 'module' object has no attribute 
'LookupModule'\n",


Can some one help me out please.

-- 
You received this message because you are subscribed to the Google Groups 
"Ansible Development" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to ansible-devel+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to