# Seamless provisioning, install and configuration automation in Ansible

**URL:** <https://forum.ansible.com/t/seamless-provisioning-install-and-configuration-automation-in-ansible/24214>\
**Category:** Ansible Project\
**Tags:** kubernetes\
**Created:** [April 13, 2017, 2:23am UTC](https://forum.ansible.com/t/seamless-provisioning-install-and-configuration-automation-in-ansible/24214 "2017-04-13T02:23:05Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Madhava\_Rao](https://avatars.discourse-cdn.com/v4/letter/m/838e76/32.png) [@Madhava\_Rao](https://forum.ansible.com/u/Madhava_Rao)\
**Post date:** [April 13, 2017, 2:23am UTC](https://forum.ansible.com/t/seamless-provisioning-install-and-configuration-automation-in-ansible/24214/1 "2017-04-13T02:23:05Z")

</div>

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,

---

<div class="post-metadata">

**Author:** ![Dick\_Davies](https://avatars.discourse-cdn.com/v4/letter/d/b9e5f3/32.png) [@Dick\_Davies](https://forum.ansible.com/u/Dick_Davies)\
**Post date:** [April 13, 2017, 6:05pm UTC](https://forum.ansible.com/t/seamless-provisioning-install-and-configuration-automation-in-ansible/24214/2 "2017-04-13T18:05:31Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![Madhava\_Rao](https://avatars.discourse-cdn.com/v4/letter/m/838e76/32.png) [@Madhava\_Rao](https://forum.ansible.com/u/Madhava_Rao)\
**Post date:** [April 18, 2017, 2:42am UTC](https://forum.ansible.com/t/seamless-provisioning-install-and-configuration-automation-in-ansible/24214/3 "2017-04-18T02:42:42Z")

</div>

Could you please point to some links on how it can done through Azure?

Thanks,

---

<div class="post-metadata">

**Author:** ![Dick\_Davies](https://avatars.discourse-cdn.com/v4/letter/d/b9e5f3/32.png) [@Dick\_Davies](https://forum.ansible.com/u/Dick_Davies)\
**Post date:** [April 18, 2017, 6:47am UTC](https://forum.ansible.com/t/seamless-provisioning-install-and-configuration-automation-in-ansible/24214/4 "2017-04-18T06:47:55Z")

</div>

I've never used Azure but this looks like what you want:

[https://azure.microsoft.com/en-us/blog/custom-data-and-cloud-init-on-windows-azure/](https://azure.microsoft.com/en-us/blog/custom-data-and-cloud-init-on-windows-azure/)
