From cb4b964070df2088fddb9c41f57c4eb01dde7852 Mon Sep 17 00:00:00 2001 From: Andrey Shorin Date: Mon, 23 Sep 2013 13:33:36 +0400 Subject: [PATCH] Allow for dynamic accelerate_port: and port: in plays --- lib/ansible/runner/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ansible/runner/__init__.py b/lib/ansible/runner/__init__.py index be0d0682489..2412ed89001 100644 --- a/lib/ansible/runner/__init__.py +++ b/lib/ansible/runner/__init__.py @@ -624,7 +624,7 @@ class Runner(object): # calls just to accomodate this one case actual_port = [actual_port, self.accelerate_port] elif actual_port is not None: - actual_port = int(actual_port) + actual_port = int(template.template(self.basedir, actual_port, inject)) except ValueError, e: result = dict(failed=True, msg="FAILED: Configured port \"%s\" is not a valid port, expected integer" % actual_port) return ReturnData(host=host, comm_ok=False, result=result)