From 828119d823720a1d2360d4e52406b669a6f94b49 Mon Sep 17 00:00:00 2001 From: Michael DeHaan Date: Sat, 9 Feb 2013 22:42:35 -0500 Subject: [PATCH] Allow the remote username to come from a variable set in vars_files or vars --- lib/ansible/runner/__init__.py | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/ansible/runner/__init__.py b/lib/ansible/runner/__init__.py index 74d921fb84..588ec13cf1 100644 --- a/lib/ansible/runner/__init__.py +++ b/lib/ansible/runner/__init__.py @@ -354,6 +354,7 @@ class Runner(object): module_name = utils.template(self.basedir, module_name, inject) module_args = utils.template(self.basedir, module_args, inject, expand_lists=True) + self.remote_user = utils.template(self.basedir, self.remote_user, inject, expand_lists=True) if module_name in utils.plugins.action_loader: if self.background != 0: