Make lookup API extensible and allow basedir to be passed

This allows using with_fileglob in play context, e.g.
- include: $item
  with_fileglob: tasks/*.yml
as well as prepares for other data to be passed.
This commit is contained in:
Daniel Hokka Zakrisson 2012-10-31 16:52:31 +01:00
commit 37d9acc097
4 changed files with 10 additions and 12 deletions

View file

@ -15,14 +15,12 @@
# You should have received a copy of the GNU General Public License
# along with Ansible. If not, see <http://www.gnu.org/licenses/>.
import os
class LookupModule(object):
def __init__(self, runner):
self.runner = runner
def __init__(self, **kwargs):
pass
def run(self, terms):
def run(self, terms, **kwargs):
return terms