Ansible Multiple virtual machines or templates with same name found.

49 views
Skip to first unread message

David Foley

unread,
Apr 29, 2020, 12:58:40 PM4/29/20
to Ansible Project

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.


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

Dick Visser

unread,
Apr 29, 2020, 2:02:45 PM4/29/20
to ansible...@googlegroups.com
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. 

--
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 ansible-proje...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/32ad5fa6-bc48-451b-90b6-9718671225d9%40googlegroups.com.
--
Sent from a mobile device - please excuse the brevity, spelling and punctuation.

David Foley

unread,
Apr 29, 2020, 2:08:53 PM4/29/20
to ansible...@googlegroups.com
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.



Dick Visser

unread,
Apr 29, 2020, 2:10:06 PM4/29/20
to ansible...@googlegroups.com
Aha. The uuid will be unique for sure though 

David Foley

unread,
Apr 29, 2020, 4:04:15 PM4/29/20
to Ansible Project
Having issues extracting UUID
Has anyone in the group successful deployed using the path should it be

/Folder/Data center/vm/folder/template_name

Reply all
Reply to author
Forward
0 new messages