Allow the remote username to come from a variable set in vars_files or vars
This commit is contained in:
parent
e6ead2ca74
commit
828119d823
1 changed files with 1 additions and 0 deletions
|
@ -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:
|
||||||
|
|
Loading…
Reference in a new issue