Add $LOOKUP(<lookup plugin>,<data>) as a templating option

Also moves file and pipe to lookup_plugins.
This commit is contained in:
Daniel Hokka Zakrisson 2012-11-01 11:06:55 +01:00
parent 176cc8380b
commit 47082a9171
6 changed files with 113 additions and 24 deletions

View file

@ -149,9 +149,6 @@ class Task(object):
# allow the user to list comma delimited tags
import_tags = import_tags.split(",")
self.name = utils.template(None, self.name, self.module_vars)
self.action = utils.template(None, self.action, self.module_vars)
# handle mutually incompatible options
incompatibles = [ x for x in [ self.first_available_file, self.items_lookup_plugin ] if x is not None ]
if len(incompatibles) > 1: