Merge "Use {{ ansible_host }} for ssh-keyscan"
diff --git a/zuul/launcher/ansiblelaunchserver.py b/zuul/launcher/ansiblelaunchserver.py
index 935a2cc..40d0d5a 100644
--- a/zuul/launcher/ansiblelaunchserver.py
+++ b/zuul/launcher/ansiblelaunchserver.py
@@ -1187,8 +1187,8 @@
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'))