diff --git a/lib/ansible/runner/lookup_plugins/env.py b/lib/ansible/runner/lookup_plugins/env.py index 6acc5f59dd8..d4f85356edf 100644 --- a/lib/ansible/runner/lookup_plugins/env.py +++ b/lib/ansible/runner/lookup_plugins/env.py @@ -16,6 +16,7 @@ # along with Ansible. If not, see . from ansible import utils, errors +from ansible.utils import template import os class LookupModule(object): @@ -25,7 +26,10 @@ class LookupModule(object): def run(self, terms, inject=None, **kwargs): - terms = utils.listify_lookup_plugin_terms(terms, self.basedir, inject) + try: + terms = template.template(self.basedir, terms, inject) + except Exception, e: + pass if isinstance(terms, basestring): terms = [ terms ]