# VMware Template playbook options

**URL:** <https://forum.ansible.com/t/vmware-template-playbook-options/20590>\
**Category:** Ansible Project\
**Tags:** vmware\
**Created:** [February 16, 2016, 12:31pm UTC](https://forum.ansible.com/t/vmware-template-playbook-options/20590 "2016-02-16T12:31:06Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Mark\_Matthews](https://avatars.discourse-cdn.com/v4/letter/m/5f9b8f/32.png) [@Mark\_Matthews](https://forum.ansible.com/u/Mark_Matthews)\
**Post date:** [February 16, 2016, 12:31pm UTC](https://forum.ansible.com/t/vmware-template-playbook-options/20590/1 "2016-02-16T12:31:06Z")

</div>

Hi

I am setting up a new VMware virtual machine from a template using a Ansible playbook.

I want to be able to change the datastore and the network (vm\_disk and vm\_nic) of the VM during the setup of the VM. But when I add this information into the playbook (see below), nothing happens.  
The new VM is created, but the datastore and network have not been adjust to what I requested in the playbook. They have remained the same as what the template image is.

Am I doing something incorrect in the playbook? Or is this not possible with Ansible?

Playbook (highlighted in bold is what is not being adjusted)

---

<div class="post-metadata">

**Author:** ![Lim\_Kim\_Tee](https://avatars.discourse-cdn.com/v4/letter/l/9d8465/32.png) [@Lim\_Kim\_Tee](https://forum.ansible.com/u/Lim_Kim_Tee)\
**Post date:** [March 24, 2016, 7:53am UTC](https://forum.ansible.com/t/vmware-template-playbook-options/20590/2 "2016-03-24T07:53:18Z")

</div>

hi Mark,

I too also facing the same problem. I wanted to do the same.  
By any chance you have figured it out?  
Thanks. 🙂

---

<div class="post-metadata">

**Author:** ![Kevin\_Foster](https://avatars.discourse-cdn.com/v4/letter/k/ed655f/32.png) [@Kevin\_Foster](https://forum.ansible.com/u/Kevin_Foster)\
**Post date:** [March 28, 2016, 7:14pm UTC](https://forum.ansible.com/t/vmware-template-playbook-options/20590/3 "2016-03-28T19:14:03Z")

</div>

This would be a great feature. We use templates that we get from customers with suites of software already installed so I can’t build it from iso every time.

---

<div class="post-metadata">

**Author:** ![Radu\_Stefanache](https://avatars.discourse-cdn.com/v4/letter/r/b19c9b/32.png) [@Radu\_Stefanache](https://forum.ansible.com/u/Radu_Stefanache)\
**Post date:** [June 20, 2016, 2:09pm UTC](https://forum.ansible.com/t/vmware-template-playbook-options/20590/4 "2016-06-20T14:09:25Z")

</div>

Hi Mark,

have you got any news on this one ?  
I am currently trying to do the same thing and it does not work.  
I’ve tried to clone the vm/template and reconfigure it while being powered off but that didn’t help either.

Cheers  
Radu

---

<div class="post-metadata">

**Author:** ![Dominik\_Bessler](https://avatars.discourse-cdn.com/v4/letter/d/7ab992/32.png) [@Dominik\_Bessler](https://forum.ansible.com/u/Dominik_Bessler)\
**Post date:** [June 20, 2016, 3:38pm UTC](https://forum.ansible.com/t/vmware-template-playbook-options/20590/5 "2016-06-20T15:38:13Z")

</div>

Try this one: [https://github.com/whereismyjetpack/ansible\_vcenter\_module](https://github.com/whereismyjetpack/ansible_vcenter_module)  
The Network Interface part works for me.
