Merge "Use {{ ansible_host }} for ssh-keyscan"

This commit is contained in:
Jenkins 2016-09-02 22:00:52 +00:00 committed by Gerrit Code Review
commit aba3258b4e
1 changed files with 2 additions and 2 deletions

View File

@ -1187,8 +1187,8 @@ class NodeWorker(object):
error_block = []
variables = []
shellargs = "ssh-keyscan %s > %s" % (
self.host, jobdir.known_hosts)
shellargs = "ssh-keyscan {{ ansible_host }} > %s" % (
jobdir.known_hosts)
pre_tasks.append(dict(shell=shellargs,
delegate_to='127.0.0.1'))