diff --git a/tasks/aws_cloud.yml b/tasks/aws_cloud.yml index 444c6f26e5..8d076e1aa3 100644 --- a/tasks/aws_cloud.yml +++ b/tasks/aws_cloud.yml @@ -19,7 +19,7 @@ when: birthday is defined - name: gather the temporary ssh host key from the new instance - local_action: command ssh-keyscan -t rsa {{ inventory_hostname }} + local_action: command ssh-keyscan -t {{ item }} {{ inventory_hostname }} register: hostkey loop: - rsa