Are you able to modify the VM templates? That would be simplest.
Depending on your virtualiser there is usually a way to run a 'first boot' step
on newly created VMs; that might be another way to get the initial pubkey
(that Ansible will use) installed.

On 13 April 2017 at 03:23, Madhava Rao <[email protected]> wrote:
> Hi,
>
> I'm automating a QA environment which involves provisioning VM's on the
> cloud and installation of Kubernetes cluster. I'm able to install and
> configure Kubernetes on the VM's after provisioning thanks to the Kubernetes
> Contrib.
>
> I would like to know how I can provision a VM, copy the public keys to the
> VM created, and proceed with the installation of Kubernetes without manual
> intervention. Currently I can't figure out a way in which I can copy the ssh
> keys to the provisioned VM without the password prompt. Any directions on
> how to achieve this would be very helpful.
>
> Thanks,
>
> --
> You received this message because you are subscribed to the Google Groups
> "Ansible Project" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To post to this group, send email to [email protected].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/ansible-project/8ac66980-9292-40ef-98a7-89d095e64ce4%40googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.

-- 
You received this message because you are subscribed to the Google Groups 
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/CAK5eLPR%3DGmbYm%3DK5j9Rz7nVwoyjN%2BYQMghGk0tvBJTfCCBjo9Q%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to