diff --git a/tasks/virt_instance_create.yml b/tasks/virt_instance_create.yml index cf9055a7fd..568c4d8fb5 100644 --- a/tasks/virt_instance_create.yml +++ b/tasks/virt_instance_create.yml @@ -50,7 +50,7 @@ when: inventory_hostname not in result.list_vms - name: gather ssh host key from new instance - local_action: ssh-keyscan -t rsa {{ inventory_hostname }} + local_action: command ssh-keyscan -t rsa {{ inventory_hostname }} ignore_errors: True register: hostkey when: inventory_hostname not in result.list_vms