Merge "Use {{ ansible_host }} for ssh-keyscan"
This commit is contained in:
commit
aba3258b4e
|
@ -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'))
|
||||
|
||||
|
|
Loading…
Reference in New Issue