Use the play's vars for the setup step
Allows using -e ansible_ssh_port=foo and have it apply to all actions.
This commit is contained in:
parent
d1c285b70b
commit
ef357ed1f2
1 changed files with 1 additions and 1 deletions
|
@ -357,7 +357,7 @@ class PlayBook(object):
|
|||
forks=self.forks, module_path=self.module_path, timeout=self.timeout, remote_user=play.remote_user,
|
||||
remote_pass=self.remote_pass, remote_port=play.remote_port, private_key_file=self.private_key_file,
|
||||
setup_cache=self.SETUP_CACHE, callbacks=self.runner_callbacks, sudo=play.sudo, sudo_user=play.sudo_user,
|
||||
transport=play.transport, sudo_pass=self.sudo_pass, is_playbook=True
|
||||
transport=play.transport, sudo_pass=self.sudo_pass, is_playbook=True, module_vars=play.vars,
|
||||
).run()
|
||||
self.stats.compute(setup_results, setup=True)
|
||||
|
||||
|
|
Loading…
Reference in a new issue