diff --git a/plugins/virsh/tasks/download_images.yml b/plugins/virsh/tasks/download_images.yml index 7381fb6a06..e0c148efe3 100644 --- a/plugins/virsh/tasks/download_images.yml +++ b/plugins/virsh/tasks/download_images.yml @@ -43,7 +43,7 @@ --run-command 'echo "UseDNS no" >> /etc/ssh/sshd_config' \ --mkdir /root/.ssh \ --chmod 0700:/root/.ssh \ - --upload /root/.ssh/id_rsa.pub:/root/.ssh/authorized_keys \ + --ssh-inject root:file:/root/.ssh/id_rsa.pub \ --delete /etc/dhcp/dhclient.conf \ --selinux-relabel with_items: "{{ download_image_result.results }}"