From 5b5c6aad398a3232f98479975e6c9f12b6341a78 Mon Sep 17 00:00:00 2001 From: Federico Ressi Date: Thu, 7 Jun 2018 16:32:29 +0200 Subject: [PATCH] Use virt-customize --ssh-inject to install SSH public keys. --- plugins/virsh/tasks/download_images.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 }}"