# Ansible Multiple virtual machines or templates with same name found.

**URL:** <https://forum.ansible.com/t/ansible-multiple-virtual-machines-or-templates-with-same-name-found/32814>\
**Category:** Ansible Project\
**Created:** [April 29, 2020, 4:58pm UTC](https://forum.ansible.com/t/ansible-multiple-virtual-machines-or-templates-with-same-name-found/32814 "2020-04-29T16:58:40Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![David\_Foley](https://avatars.discourse-cdn.com/v4/letter/d/9e8a1a/32.png) [@David\_Foley](https://forum.ansible.com/u/David_Foley)\
**Post date:** [April 29, 2020, 4:58pm UTC](https://forum.ansible.com/t/ansible-multiple-virtual-machines-or-templates-with-same-name-found/32814/1 "2020-04-29T16:58:40Z")

</div>

Hi All,

Trying to Deploy a Virtual Machine on a Cluster within a DataCenter which appears that a Template with the Same name is on a different Cluster within the Same Datacenter:

Looking at the Following from the Doc:  
can someone help me with the absolute path ?

I tried the following

template: “Corp\San Diego\QR.Golden Tempates\WS2016-DSC-0819” which didn’t appear to Work.

> **template**   
> -  
> | |   
> Template or existing virtual machine used to create new virtual machine.  
> If this value is not set, virtual machine is created without using a template.  
> If the virtual machine already exists, this parameter will be ignored.  
> This parameter is case sensitive.  
> You can also specify template or VM UUID for identifying source. version\_added 2.8. Use `hw_product_uuid` from vmware\_guest\_facts as UUID value.  
> From version 2.8 onwards, absolute path to virtual machine or template can be used.  
>   
>   
> |
> 
> - | - | - |

```auto
TASK [Virtual Machine customization] *******************************************
fatal: [localhost -> localhost]: FAILED! => {"changed": false, "msg": "Multiple virtual machines or templates with same name [WS2016-DSC-0819] found."}

```

---

<div class="post-metadata">

**Author:** ![Dick\_Visser](https://avatars.discourse-cdn.com/v4/letter/d/d9b06d/32.png) [@Dick\_Visser](https://forum.ansible.com/u/Dick_Visser)\
**Post date:** [April 29, 2020, 6:02pm UTC](https://forum.ansible.com/t/ansible-multiple-virtual-machines-or-templates-with-same-name-found/32814/2 "2020-04-29T18:02:07Z")

</div>

Maybe I’m stating the obvious but you should make sure there are no duplicate templates.

Or, as the docs you quoted say, use the UUID to identify it.

---

<div class="post-metadata">

**Author:** ![David\_Foley](https://avatars.discourse-cdn.com/v4/letter/d/9e8a1a/32.png) [@David\_Foley](https://forum.ansible.com/u/David_Foley)\
**Post date:** [April 29, 2020, 6:08pm UTC](https://forum.ansible.com/t/ansible-multiple-virtual-machines-or-templates-with-same-name-found/32814/3 "2020-04-29T18:08:20Z")

</div>

Hi  
It would be nice to have different names for templates but  
I don’t have control of the templates just working on the automation of different tasks within our infrastructure.

---

<div class="post-metadata">

**Author:** ![Dick\_Visser](https://avatars.discourse-cdn.com/v4/letter/d/d9b06d/32.png) [@Dick\_Visser](https://forum.ansible.com/u/Dick_Visser)\
**Post date:** [April 29, 2020, 6:09pm UTC](https://forum.ansible.com/t/ansible-multiple-virtual-machines-or-templates-with-same-name-found/32814/4 "2020-04-29T18:09:39Z")

</div>

Aha. The uuid will be unique for sure though

---

<div class="post-metadata">

**Author:** ![David\_Foley](https://avatars.discourse-cdn.com/v4/letter/d/9e8a1a/32.png) [@David\_Foley](https://forum.ansible.com/u/David_Foley)\
**Post date:** [April 29, 2020, 8:04pm UTC](https://forum.ansible.com/t/ansible-multiple-virtual-machines-or-templates-with-same-name-found/32814/5 "2020-04-29T20:04:15Z")

</div>

Having issues extracting UUID  
Has anyone in the group successful deployed using the path should it be

/Folder/Data center/vm/folder/template\_name
