From 68e35917a7f61d03d232059e521283d7aedfd15b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cosmin=20Lu=C8=9B=C4=83?= Date: Sun, 27 May 2012 15:01:14 +0300 Subject: [PATCH] Allowing the template module to expand src=$foo --- lib/ansible/runner.py | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/ansible/runner.py b/lib/ansible/runner.py index 9e903871e00..17044f97973 100644 --- a/lib/ansible/runner.py +++ b/lib/ansible/runner.py @@ -514,6 +514,7 @@ class Runner(object): # apply templating to source argument so vars can be used in the path inject = self.setup_cache.get(conn.host,{}) + inject.update(self.module_vars) # if we have first_available_file in our vars # look up the files and use the first one we find as src