# create VM from template with customiation spec

**URL:** <https://forum.ansible.com/t/create-vm-from-template-with-customiation-spec/38042>\
**Category:** Ansible Project\
**Created:** [June 1, 2023, 2:00pm UTC](https://forum.ansible.com/t/create-vm-from-template-with-customiation-spec/38042 "2023-06-01T14:00:29Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Tony\_Wong](https://avatars.discourse-cdn.com/v4/letter/t/3ab097/32.png) [@Tony\_Wong](https://forum.ansible.com/u/Tony_Wong)\
**Post date:** [June 1, 2023, 2:00pm UTC](https://forum.ansible.com/t/create-vm-from-template-with-customiation-spec/38042/1 "2023-06-01T14:00:29Z")

</div>

I want to create vm in vsphere from template and customize OS with customization spec

I am not sure how to apply a customization spec in ansible. any idea?

will something like this work

---

<div class="post-metadata">

**Author:** ![Kosala\_Atapattu1](https://avatars.discourse-cdn.com/v4/letter/k/7feea3/32.png) [@Kosala\_Atapattu1](https://forum.ansible.com/u/Kosala_Atapattu1)\
**Post date:** [June 1, 2023, 8:27pm UTC](https://forum.ansible.com/t/create-vm-from-template-with-customiation-spec/38042/2 "2023-06-01T20:27:09Z")

</div>

You need to create a customization\_spec in the vCenter and then refer that using

customization\_spec.

---

<div class="post-metadata">

**Author:** ![Walter\_Rowe](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/walter_rowe/32/4506_2.png) [@Walter\_Rowe](https://forum.ansible.com/u/Walter_Rowe)\
**Post date:** [June 2, 2023, 11:11am UTC](https://forum.ansible.com/t/create-vm-from-template-with-customiation-spec/38042/3 "2023-06-02T11:11:48Z")

</div>

That pull request is still open.

Walter
