mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-06 05:12:45 +00:00
Allow the remote username to come from a variable set in vars_files or vars
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user