Commit 828119d8 by Michael DeHaan

Allow the remote username to come from a variable set in vars_files or vars

parent e6ead2ca
...@@ -354,6 +354,7 @@ class Runner(object): ...@@ -354,6 +354,7 @@ class Runner(object):
module_name = utils.template(self.basedir, module_name, inject) module_name = utils.template(self.basedir, module_name, inject)
module_args = utils.template(self.basedir, module_args, inject, expand_lists=True) 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 module_name in utils.plugins.action_loader:
if self.background != 0: if self.background != 0:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment